mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Update bandwidth graphs for 30s, then update latency graphs
This commit is contained in:
parent
8fc2fdd01a
commit
7ce1671ce6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user