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
|
-- Helper functions
|
||||||
function tr(key)
|
function tr(key)
|
||||||
@@ -267,7 +267,7 @@ function update()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Generations check
|
-- Generations check
|
||||||
if (os.time() - getState("lastGenerationsCheckTime")) >= 20 then
|
if (os.time() - getState("lastGenerationsCheckTime")) >= 10 then
|
||||||
checkGenerations()
|
checkGenerations()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -212,6 +212,8 @@ watchState("isRemoteCheckRunning", render)
|
|||||||
watchState("lastRemoteCheckTimeStr", render)
|
watchState("lastRemoteCheckTimeStr", render)
|
||||||
watchState("localHash", render)
|
watchState("localHash", render)
|
||||||
watchState("remoteHash", render)
|
watchState("remoteHash", render)
|
||||||
|
watchState("storeSize", render)
|
||||||
|
watchState("closureSize", render)
|
||||||
|
|
||||||
-- Hooks
|
-- Hooks
|
||||||
function onOpen(_ctx)
|
function onOpen(_ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user