fix(nix-monitor): adjust update interval and add state watcher
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
noctalia.setUpdateInterval(5000)
|
||||
noctalia.setUpdateInterval(1000)
|
||||
|
||||
-- Helper functions
|
||||
function tr(key)
|
||||
@@ -267,7 +267,7 @@ function update()
|
||||
end
|
||||
|
||||
-- Generations check
|
||||
if (os.time() - getState("lastGenerationsCheckTime")) >= 20 then
|
||||
if (os.time() - getState("lastGenerationsCheckTime")) >= 10 then
|
||||
checkGenerations()
|
||||
end
|
||||
|
||||
|
||||
@@ -212,6 +212,8 @@ watchState("isRemoteCheckRunning", render)
|
||||
watchState("lastRemoteCheckTimeStr", render)
|
||||
watchState("localHash", render)
|
||||
watchState("remoteHash", render)
|
||||
watchState("storeSize", render)
|
||||
watchState("closureSize", render)
|
||||
|
||||
-- Hooks
|
||||
function onOpen(_ctx)
|
||||
|
||||
Reference in New Issue
Block a user