mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
daily-psk: explicitly cast to num
This commit is contained in:
parent
d586a5ab19
commit
e7927e0eee
|
@ -38,7 +38,7 @@ $WaitFullyConnected;
|
|||
|
||||
:local Month ($Months->[ :pick $Date 0 3 ]);
|
||||
:local Day [ :tonum [ :pick $Date 4 6 ] ];
|
||||
:local Year [ :pick $Date 7 11 ];
|
||||
:local Year [ :tonum [ :pick $Date 7 11 ] ];
|
||||
|
||||
:local A ((14 - $Month) / 12);
|
||||
:local B ($Year - $A);
|
||||
|
|
|
@ -38,7 +38,7 @@ $WaitFullyConnected;
|
|||
|
||||
:local Month ($Months->[ :pick $Date 0 3 ]);
|
||||
:local Day [ :tonum [ :pick $Date 4 6 ] ];
|
||||
:local Year [ :pick $Date 7 11 ];
|
||||
:local Year [ :tonum [ :pick $Date 7 11 ] ];
|
||||
|
||||
:local A ((14 - $Month) / 12);
|
||||
:local B ($Year - $A);
|
||||
|
|
|
@ -39,7 +39,7 @@ $WaitFullyConnected;
|
|||
|
||||
:local Month ($Months->[ :pick $Date 0 3 ]);
|
||||
:local Day [ :tonum [ :pick $Date 4 6 ] ];
|
||||
:local Year [ :pick $Date 7 11 ];
|
||||
:local Year [ :tonum [ :pick $Date 7 11 ] ];
|
||||
|
||||
:local A ((14 - $Month) / 12);
|
||||
:local B ($Year - $A);
|
||||
|
|
Loading…
Reference in a new issue