Zero Inventory().numberOfInventoryLookupsPerformed before update started

because "Inventory lookups per second" is calculated by /2 (for 2 sec)
This commit is contained in:
Dmitri Bogomolov 2018-02-06 17:33:19 +02:00
parent 85cce42de0
commit 3b3e4de9d7
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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