global-functions: $WaitTimeSync: rotate ntp servers minutely

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2020-02-24 12:15:06 +01:00
parent 5fab77abad
commit 19b80ee063

View file

@ -481,6 +481,10 @@
:global TimeIsSync; :global TimeIsSync;
:while ([ $TimeIsSync ] = false) do={ :while ([ $TimeIsSync ] = false) do={
:if ([ / system script print count-only where name="rotate-ntp" ] > 0 && \
[ :tostr [ / system resource get uptime ] ] ~ "00\$") do={
/ system script run rotate-ntp;
}
:delay 1s; :delay 1s;
} }
} }