Skip to content

Commit

Permalink
Suppressed sleep message using noisysleep in user-config
Browse files Browse the repository at this point in the history
The  "Waiting for 7 pages to be put. Estimated time remaining:
0:01:10 ***"  message will now appear only when "Estimated
time remaining" in more than noisysleep.

Bug: T124012
Change-Id: Ib0173c131d13ed00ea2b51cd9254d5fc1131b655
  • Loading branch information
ayushjain19 committed Sep 25, 2016
1 parent 499e926 commit ac27a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywikibot/__init__.py
Expand Up @@ -902,7 +902,7 @@ def remaining():
page_put_queue.put((None, [], {}))

num, sec = remaining()
if num > 0:
if num > 0 and sec.total_seconds() > config.noisysleep:
output(color_format(
'{lightblue}Waiting for {num} pages to be put. '
'Estimated time remaining: {sec}{default}', num=num, sec=sec))
Expand Down

0 comments on commit ac27a20

Please sign in to comment.