aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}