Fixed variable name typo error
This commit is contained in:
parent
9c882f7c83
commit
5b9bf61ef4
|
@ -59,7 +59,7 @@ if __name__ == '__main__':
|
|||
with open('/logs/connectivity.log', 'a') as log:
|
||||
log.write(f'{datetime.now()} - Internet down, rebooting router\n')
|
||||
|
||||
consecutive_downtime = 0
|
||||
consecutive_internet_downtime = 0
|
||||
router.reboot()
|
||||
sleep(120)
|
||||
else:
|
||||
|
@ -72,6 +72,6 @@ if __name__ == '__main__':
|
|||
with open('/logs/connectivity.log', 'a') as log:
|
||||
log.write(f'{datetime.now()} - Internet and LAN down\n')
|
||||
|
||||
consecutive_downtime = 0
|
||||
consecutive_internet_downtime = 0
|
||||
else:
|
||||
consecutive_downtime = 0
|
||||
consecutive_internet_downtime = 0
|
||||
|
|
Loading…
Reference in New Issue