summaryrefslogtreecommitdiff
path: root/other/tor/bin/rrd-update
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-01-08 21:22:28 +0000
committerPeter Palfrader <peter@palfrader.org>2006-01-08 21:22:28 +0000
commit14aca3e7a36e0ada5fc22e4322bbf7684e83bec9 (patch)
tree8c01334bd8d04553b9b2815904e6f15ada3370b2 /other/tor/bin/rrd-update
parent589303f92034f46044a8d22aa9282de1e01bb740 (diff)
Change log view from 15 to 24 months
work around state loading bug
Diffstat (limited to 'other/tor/bin/rrd-update')
-rwxr-xr-xother/tor/bin/rrd-update4
1 files changed, 4 insertions, 0 deletions
diff --git a/other/tor/bin/rrd-update b/other/tor/bin/rrd-update
index 30e5466..9f84221 100755
--- a/other/tor/bin/rrd-update
+++ b/other/tor/bin/rrd-update
@@ -429,6 +429,10 @@ for my $dir (@dirfiles) {
if ($v < 0) {
$v += 4294967296; # work around bug in tor, that has history as signed 32 bit integer.
};
+ if ($v > 18446744000000000000) {
+ $v = $v - 2**64 + 2**32; # state loading bug, fixed 2006-01-02
+ };
+ #print "Setting $inout value to $v for host $hash from $dir\n";
$hist{$stamp}->{$inout} = $v;
$stamp -= $interval;
};