Georggi199 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/257850

Change subject: No longer shows execution times of 0 seconds
......................................................................

No longer shows execution times of 0 seconds

Should no longer show execution time of 0 seconds

Bug T70613

Change-Id: I2a17f2f4f05a8b134237ccd5037ba02e42c6e1bc
---
M scripts/checkimages.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/50/257850/1

diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 762f6d6..4495d28 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1770,4 +1770,5 @@
     else:
         final = time.time()
         delta = int(final - start)
-        pywikibot.output("Execution time: %s seconds\n" % delta)
+               if delta != 0:
+                       pywikibot.output("Execution time: %s seconds\n" % delta)

-- 
To view, visit https://gerrit.wikimedia.org/r/257850
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a17f2f4f05a8b134237ccd5037ba02e42c6e1bc
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Georggi199 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to