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...
This commit is contained in:
Christian Hesse 2022-07-21 13:22:58 +02:00
parent 518cc24108
commit ed7b48061a

View file

@ -484,14 +484,8 @@
:global LogPrintExit2; :global LogPrintExit2;
:if ([ /system/ntp/client/get enabled ] = true) do={ :if ([ /system/ntp/client/get enabled ] = true) do={
:do { :if ([ /system/ntp/client/get status ] = "synchronized") do={
:if ([ /system/ntp/client/get status ] = "synchronized") do={ :return true;
:return true;
}
} on-error={
:if ([ :typeof [ /system/ntp/client/get last-adjustment ] ] = "time") do={
:return true;
}
} }
:return false; :return false;
} }