mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
log-forward: fix forwarding first message
Pulling the power cable results in log message on next boot: dec/16 18:28:28 system,error,critical router rebooted without proper shutdown, probably power outage This was not forwarded as it had the numeric id 0, which is not greater than the zero we initialized with. Now initialized with -1 when no log has been forwarded to fix this.
This commit is contained in:
parent
b936970c19
commit
ee57ddf595
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ $WaitFullyConnected;
|
||||||
|
|
||||||
:local Count 0;
|
:local Count 0;
|
||||||
:local Duplicates false;
|
:local Duplicates false;
|
||||||
:local Last [ $HexToNum $LogForwardLast ];
|
:local Last [ $IfThenElse ([ :len $LogForwardLast ] > 0) [ $HexToNum $LogForwardLast ] -1 ];
|
||||||
:local Messages "";
|
:local Messages "";
|
||||||
:local MessageVal;
|
:local MessageVal;
|
||||||
:local MessageDups [ :toarray "" ];
|
:local MessageDups [ :toarray "" ];
|
||||||
|
|
Loading…
Reference in a new issue