1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

daily-psk: explicitly cast to num

This commit is contained in:
Christian Hesse
2023-05-10 18:10:02 +02:00
parent d586a5ab19
commit e7927e0eee
3 changed files with 3 additions and 3 deletions

View File

@@ -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);