Skip to content

Commit ed7b480

Browse files
committed
global-functions: $IsTimeSync: drop old code
In RouterOS 7.x the ntp client and server are bundled and unique and can not be unavailable. Also it does no longer have a 'last-adjustment' property...
1 parent 518cc24 commit ed7b480

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

global-functions

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,8 @@
484484
:global LogPrintExit2;
485485

486486
:if ([ /system/ntp/client/get enabled ] = true) do={
487-
:do {
488-
:if ([ /system/ntp/client/get status ] = "synchronized") do={
489-
:return true;
490-
}
491-
} on-error={
492-
:if ([ :typeof [ /system/ntp/client/get last-adjustment ] ] = "time") do={
493-
:return true;
494-
}
487+
:if ([ /system/ntp/client/get status ] = "synchronized") do={
488+
:return true;
495489
}
496490
:return false;
497491
}

0 commit comments

Comments
 (0)