mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-22 08:16:25 -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 graphInfluxDB import refreshBandwidthGraphs, refreshLatencyGraphs
|
||||
from ispConfig import influxDBEnabled, automaticImportUISP, automaticImportSplynx
|
||||
try:
|
||||
from ispConfig import queueRefreshIntervalMins
|
||||
except:
|
||||
queueRefreshIntervalMins = 30
|
||||
if automaticImportUISP:
|
||||
from integrationUISP import importFromUISP
|
||||
if automaticImportSplynx:
|
||||
@ -44,7 +48,7 @@ def importAndShapePartialReload():
|
||||
if __name__ == '__main__':
|
||||
importAndShapeFullReload()
|
||||
|
||||
ads.add_job(importAndShapePartialReload, 'interval', minutes=30)
|
||||
ads.add_job(importAndShapePartialReload, 'interval', minutes=queueRefreshIntervalMins)
|
||||
|
||||
if influxDBEnabled:
|
||||
ads.add_job(graphHandler, 'interval', seconds=10)
|
||||
|
Loading…
Reference in New Issue
Block a user