From c4c02867689f996a0a0360cf41d899ebb72967cc Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Fri, 29 Mar 2013 16:19:23 -0400 Subject: [PATCH] When flushing inventory in memory, clear items older than 5 minutes, not 60 minutes --- bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 0a1ff3da..66e36d12 100755 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -2008,7 +2008,7 @@ class singleCleaner(QThread): self.emit(SIGNAL("updateStatusBar(PyQt_PyObject)"),"Doing housekeeping (Flushing inventory in memory to disk...)") for hash, storedValue in inventory.items(): objectType, streamNumber, payload, receivedTime = storedValue - if int(time.time())- 3600 > receivedTime: + if int(time.time())- 600 > receivedTime: t = (hash,objectType,streamNumber,payload,receivedTime) sqlSubmitQueue.put('''INSERT INTO inventory VALUES (?,?,?,?,?)''') sqlSubmitQueue.put(t)