aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-15 14:27:11 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-05-15 15:52:28 +0200
commit545fb5583aee9e8971749a7eab71b4040cf7847f (patch)
tree17aed264d263b915906bc599c0278ceef318f378
parentc87a7519fe03249b8dbc5da3233e593c0290095d (diff)
global-functions: $IsTimeSync: initialize with uptime...
... to make sure the warning is not issued too early.
-rw-r--r--global-functions.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index f890376..3800ad5 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -685,10 +685,10 @@
:return true;
}
+ :local Uptime [ /system/resource/get uptime ];
:if ([ :typeof $IsTimeSyncResetNtp ] = "nothing") do={
- :set IsTimeSyncResetNtp 0s;
+ :set IsTimeSyncResetNtp $Uptime;
}
- :local Uptime [ /system/resource/get uptime ];
:if ($Uptime - $IsTimeSyncResetNtp < 3m) do={
:return false;
}