[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3895 - in GNUnet/src: applications/gap util/os
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3895 - in GNUnet/src: applications/gap util/os |
Date: |
Thu, 7 Dec 2006 01:21:54 -0800 (PST) |
Author: grothoff
Date: 2006-12-07 01:21:52 -0800 (Thu, 07 Dec 2006)
New Revision: 3895
Modified:
GNUnet/src/applications/gap/gap.h
GNUnet/src/util/os/statuscalls.c
Log:
fix
Modified: GNUnet/src/applications/gap/gap.h
===================================================================
--- GNUnet/src/applications/gap/gap.h 2006-12-07 09:15:38 UTC (rev 3894)
+++ GNUnet/src/applications/gap/gap.h 2006-12-07 09:21:52 UTC (rev 3895)
@@ -48,7 +48,7 @@
* Until which load do we consider the peer idle and do not
* charge at all?
*/
-#define IDLE_LOAD_THRESHOLD 50
+#define IDLE_LOAD_THRESHOLD 75
/**
* For how many different hosts can we have a query pending (at most).
Modified: GNUnet/src/util/os/statuscalls.c
===================================================================
--- GNUnet/src/util/os/statuscalls.c 2006-12-07 09:15:38 UTC (rev 3894)
+++ GNUnet/src/util/os/statuscalls.c 2006-12-07 09:21:52 UTC (rev 3895)
@@ -431,7 +431,7 @@
if (maxExpect == 0)
ret = di->lastValue;
else
- ret = (di->lastValue * (100-weight) + weight * (currentTotal +
di->overload - di->lastSum) / maxExpect) / 100;
+ ret = di->lastValue * (100-weight) / 100 + weight * (currentTotal -
di->lastSum + di->overload) / maxExpect;
MUTEX_UNLOCK(monitor->statusMutex);
return ret;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3895 - in GNUnet/src: applications/gap util/os,
grothoff <=