git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9cbaaff
)
fixed positive bias in local rate estimation at start
author
Forrest Voight
<forrest@forre.st>
Sat, 28 Apr 2012 01:31:31 +0000 (21:31 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 1 May 2012 16:26:43 +0000 (12:26 -0400)
p2pool/util/math.py
patch
|
blob
|
history
diff --git
a/p2pool/util/math.py
b/p2pool/util/math.py
index
eb109c1
..
0e2866e
100644
(file)
--- 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