From 3b3e4de9d7fc22e7ff011c38043e6904844fd051 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Tue, 6 Feb 2018 17:33:19 +0200 Subject: [PATCH] Zero Inventory().numberOfInventoryLookupsPerformed before update started because "Inventory lookups per second" is calculated by /2 (for 2 sec) --- src/bitmessageqt/networkstatus.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bitmessageqt/networkstatus.py b/src/bitmessageqt/networkstatus.py index 02c0deaf..06b1e0ce 100644 --- a/src/bitmessageqt/networkstatus.py +++ b/src/bitmessageqt/networkstatus.py @@ -46,6 +46,7 @@ class NetworkStatus(QtGui.QWidget, RetranslateMixin): self.timer, QtCore.SIGNAL("timeout()"), self.runEveryTwoSeconds) def startUpdate(self): + Inventory().numberOfInventoryLookupsPerformed = 0 self.runEveryTwoSeconds() self.timer.start(2000) # milliseconds