mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Add option to control frequency of queue refreshes in minutes - queueRefreshIntervalMins
This commit is contained in:
parent
d965f51a64
commit
c7d501a957
@ -3,6 +3,10 @@ import datetime
|
|||||||
from LibreQoS import refreshShapers, refreshShapersUpdateOnly
|
from LibreQoS import refreshShapers, refreshShapersUpdateOnly
|
||||||
from graphInfluxDB import refreshBandwidthGraphs, refreshLatencyGraphs
|
from graphInfluxDB import refreshBandwidthGraphs, refreshLatencyGraphs
|
||||||
from ispConfig import influxDBEnabled, automaticImportUISP, automaticImportSplynx
|
from ispConfig import influxDBEnabled, automaticImportUISP, automaticImportSplynx
|
||||||
|
try:
|
||||||
|
from ispConfig import queueRefreshIntervalMins
|
||||||
|
except:
|
||||||
|
queueRefreshIntervalMins = 30
|
||||||
if automaticImportUISP:
|
if automaticImportUISP:
|
||||||
from integrationUISP import importFromUISP
|
from integrationUISP import importFromUISP
|
||||||
if automaticImportSplynx:
|
if automaticImportSplynx:
|
||||||
@ -44,7 +48,7 @@ def importAndShapePartialReload():
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
importAndShapeFullReload()
|
importAndShapeFullReload()
|
||||||
|
|
||||||
ads.add_job(importAndShapePartialReload, 'interval', minutes=30)
|
ads.add_job(importAndShapePartialReload, 'interval', minutes=queueRefreshIntervalMins)
|
||||||
|
|
||||||
if influxDBEnabled:
|
if influxDBEnabled:
|
||||||
ads.add_job(graphHandler, 'interval', seconds=10)
|
ads.add_job(graphHandler, 'interval', seconds=10)
|
||||||
|
Loading…
Reference in New Issue
Block a user