fix(nix-monitor): adjust update interval and add state watcher

This commit is contained in:
avivbintangaringga
2026-07-16 11:48:50 +07:00
parent 9279cdc84a
commit c7046594f9
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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
+2
View File
@@ -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)