mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-15 15:32:39 +02:00
global-functions: $IsTimeSync: log just once
This commit is contained in:
parent
eae8dbbb37
commit
fb7170f312
1 changed files with 3 additions and 3 deletions
|
@ -673,7 +673,7 @@
|
||||||
:global IsTimeSyncCached;
|
:global IsTimeSyncCached;
|
||||||
:global IsTimeSyncResetNtp;
|
:global IsTimeSyncResetNtp;
|
||||||
|
|
||||||
:global LogPrint;
|
:global LogPrintOnce;
|
||||||
|
|
||||||
:if ($IsTimeSyncCached = true) do={
|
:if ($IsTimeSyncCached = true) do={
|
||||||
:return true;
|
:return true;
|
||||||
|
@ -702,7 +702,7 @@
|
||||||
|
|
||||||
:if ([ /system/license/get ]->"level" = "free" || \
|
:if ([ /system/license/get ]->"level" = "free" || \
|
||||||
[ /system/resource/get ]->"board-name" = "x86") do={
|
[ /system/resource/get ]->"board-name" = "x86") do={
|
||||||
$LogPrint debug $0 ("No ntp client configured, relying on RTC for CHR free license and x86.");
|
$LogPrintOnce debug $0 ("No ntp client configured, relying on RTC for CHR free license and x86.");
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -714,7 +714,7 @@
|
||||||
:return false;
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$LogPrint debug $0 ("No time source configured! Returning gracefully...");
|
$LogPrintOnce debug $0 ("No time source configured! Returning gracefully...");
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue