reduce tracking length for recent activity
authorForrest Voight <forrest@forre.st>
Tue, 26 Jul 2011 00:28:19 +0000 (20:28 -0400)
committerForrest Voight <forrest@forre.st>
Tue, 26 Jul 2011 00:28:19 +0000 (20:28 -0400)
p2pool/main.py

index c3d5795..7b4a9ea 100644 (file)
@@ -484,7 +484,7 @@ def main(args):
                     height, last = tracker.get_height_and_last(current_work.value['best_share_hash'])
                     if height > 5:
                         att_s = p2pool.get_pool_attempts_per_second(tracker, current_work.value['best_share_hash'], args.net)
-                        weights, total_weight = tracker.get_cumulative_weights(current_work.value['best_share_hash'], min(height, 1000), 2**100)
+                        weights, total_weight = tracker.get_cumulative_weights(current_work.value['best_share_hash'], min(height, 120), 2**100)
                         count = counter(current_work.value['best_share_hash'], height, 2**100)
                         print 'Pool: %sH/s in %i shares Recent: %.02f%% >%sH/s Known: %i shares (so %i stales)' % (
                             math.format(att_s),