Update bandwidth graphs for 30s, then update latency graphs

This commit is contained in:
Robert Chacón 2022-11-07 22:50:13 -07:00 committed by GitHub
parent 8fc2fdd01a
commit 7ce1671ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,16 +32,14 @@ if __name__ == '__main__':
importAndShapeFullReload()
schedule.every().day.at("04:00").do(importAndShapeFullReload)
schedule.every(30).minutes.do(importAndShapePartialReload)
secondsBetweenGraphRefreshes = 10
while True:
schedule.run_pending()
if influxDBEnabled:
try:
for i in range(3):
refreshBandwidthGraphs()
time.sleep(secondsBetweenGraphRefreshes)
time.sleep(10)
refreshLatencyGraphs()
time.sleep(secondsBetweenGraphRefreshes)
except:
print("Failed to update graphs")
else: