Fixed variable name typo error

This commit is contained in:
Ashish D'Souza 2023-07-11 07:56:03 -04:00
parent 9c882f7c83
commit 5b9bf61ef4
1 changed files with 3 additions and 3 deletions

View File

@ -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