From 055844fcd2b845bfd4ac68e2e29ae97eccbc535c Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Fri, 27 Apr 2012 21:31:31 -0400 Subject: [PATCH] fixed positive bias in local rate estimation at start --- p2pool/util/math.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/p2pool/util/math.py b/p2pool/util/math.py index eb109c1..0e2866e 100644 --- a/p2pool/util/math.py +++ b/p2pool/util/math.py @@ -243,9 +243,10 @@ class RateMonitor(object): def add_datum(self, datum): self._prune() t = time.time() - self.datums.append((t, datum)) if self.first_timestamp is None: self.first_timestamp = t + else: + self.datums.append((t, datum)) if __name__ == '__main__': import random -- 1.7.1