mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-02 01:04:28 +02:00
global-functions: $WaitTimeSync: calculate with modulo operation
The uptime is returned in time, with supports arithmetic modulo operation. This is three minutes in nano seconds, so multiplied 180 with 10^9.
This commit is contained in:
parent
9bd56d8aca
commit
8e6403b1be
1 changed files with 1 additions and 1 deletions
|
@ -967,7 +967,7 @@
|
|||
|
||||
:while ([ $TimeIsSync ] = false) do={
|
||||
:if ([ :len [ / system script find where name="rotate-ntp" ] ] > 0 && \
|
||||
[ :tostr [ / system resource get uptime ] ] ~ "[369]:00\$") do={
|
||||
([ / system resource get uptime ] % (180 * 1000000000)) = 0s) do={
|
||||
:do {
|
||||
/ system script run rotate-ntp;
|
||||
} on-error={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue