mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:31 +02:00
[ ... print count-only ...] -> [ :len [ ... find ... ] ]
Using 'print count-only' always prints a number to terminal, even if the value is evaluated in a condition or assigned to a variable. This can be quite annoying. Behavior will not chance (SUP-25503), so replacing the code...
This commit is contained in:
parent
92ca31a41d
commit
ff5cdc3019
20 changed files with 38 additions and 38 deletions
|
@ -14,7 +14,7 @@ $ScriptLock "capsman-rolling-upgrade";
|
|||
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
|
||||
:local RemoteCapCount [ /caps-man remote-cap print count-only ];
|
||||
:local RemoteCapCount [ :len [ / caps-man remote-cap find ] ];
|
||||
:if ($RemoteCapCount > 0) do={
|
||||
:local Delay (600 / $RemoteCapCount);
|
||||
:if ($Delay > 120) do={ :set Delay 120; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue