[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2445 - GNUnet/src/applications/gap
From: |
durner |
Subject: |
[GNUnet-SVN] r2445 - GNUnet/src/applications/gap |
Date: |
Tue, 10 Jan 2006 08:16:15 -0800 (PST) |
Author: durner
Date: 2006-01-10 08:16:11 -0800 (Tue, 10 Jan 2006)
New Revision: 2445
Modified:
GNUnet/src/applications/gap/gap.c
Log:
short path
Modified: GNUnet/src/applications/gap/gap.c
===================================================================
--- GNUnet/src/applications/gap/gap.c 2006-01-10 15:08:21 UTC (rev 2444)
+++ GNUnet/src/applications/gap/gap.c 2006-01-10 16:16:11 UTC (rev 2445)
@@ -1616,6 +1616,13 @@
EncName enc;
#endif
+ /* Load above hard limit? */
+ if ((hardCPULimit && getCPULoad() >= hardCPULimit) ||
+ (hardUpLimit && getNetworkLoadUp() >= hardUpLimit) ) {
+
+ return SYSERR;
+ }
+
ite = &ROUTING_indTable_[computeRoutingIndex(&query->queries[0])];
MUTEX_LOCK(&lookup_exclusion);
i = -1;
@@ -1717,14 +1724,6 @@
MUTEX_UNLOCK(&lookup_exclusion);
if (doForward) {
-
- /* Load above hard limit? */
- if ((hardCPULimit && getCPULoad() >= hardCPULimit) ||
- (hardUpLimit && getNetworkLoadUp() >= hardUpLimit) ) {
-
- return SYSERR;
- }
-
forwardQuery(query,
sender);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2445 - GNUnet/src/applications/gap,
durner <=