Skip to content

Commit 66d40ca

Browse files
Merge pull request #70 from Utesgui/fix_run_once
fix not_done_once variable in monitor.py
2 parents 0db3105 + c249b2c commit 66d40ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monitor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,10 @@ def monitor():
582582
"""monitor"""
583583
global MONITOR_SOMETHING_WRITTEN_OR_ERROR # pylint:disable=global-statement
584584
prev_time = datetime.now() - timedelta(days=1.0) # once per day login
585-
not_done_once = False
585+
not_done_once = True
586586
error_count = 1
587587
while not_done_once or MONITOR_INFINITE:
588-
not_done_once = True
588+
not_done_once = False
589589
current_time = datetime.now()
590590
# login when 4x15 minutes subsequent errors or once at beginning of new day
591591
login = (error_count % 4 == 0) or not same_day(prev_time, current_time)

0 commit comments

Comments
 (0)