[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r16792: {torstatus} (ticket:67) Removing such frquent updates to the RRD (torstatus/trunk)
Author: kasimir
Date: 2008-09-07 21:01:11 -0400 (Sun, 07 Sep 2008)
New Revision: 16792
Modified:
torstatus/trunk/tns_update.pl
Log:
(ticket:67) Removing such frquent updates to the RRD
Modified: torstatus/trunk/tns_update.pl
===================================================================
--- torstatus/trunk/tns_update.pl 2008-09-08 00:44:48 UTC (rev 16791)
+++ torstatus/trunk/tns_update.pl 2008-09-08 01:01:11 UTC (rev 16792)
@@ -696,7 +696,9 @@
);
# Update the read and write bandwidth history
- if ($config{'BandwidthHistory'} eq "true")
+ # Only do this once every 900*10 seconds to retain
+ # speed, and more frequent updates are not necessary
+ if ($config{'BandwidthHistory'} eq "true" && $updateCounter % 10 == 0)
{
updateBandwidth( $currentRouter{'Fingerprint'},
$currentRouter{'write'},