From b1acdc69ac2d66be24a81c274a154117b96a2042 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 16 Nov 2019 10:12:40 +0000 Subject: [PATCH] Prepend zeros --- inbox.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inbox.py b/inbox.py index e0ce193d9..d4c3a542a 100644 --- a/inbox.py +++ b/inbox.py @@ -302,9 +302,11 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \ digestStartTime=time.time() digest=messageContentDigest(messageBytes) - timeDiff=int((time.time()-digestStartTime)*1000) - if debug or timeDiff>200: - print('DIGEST|'+str(timeDiff)+'|'+filename) + timeDiffStr=str(int((time.time()-digestStartTime)*1000)) + if debug: + while len(timeDiffStr)<6: + timeDiffStr='0'+timeDiffStr + print('DIGEST|'+timeDiffStr+'|'+filename) newQueueItem = { 'originalId': originalPostId,