I wrote a script in 2.9rc9, it worked fine up until about 2.9.3 or 4, when it started acting strangely. It seems to work sometimes, but not all the time.
The Line That is failing is:
:local emailSubject ("KP WDS UP " . $thetime . " " . $theDate . "Total Down Time: " . [/system clock get time] - $downtime)
Other Variables:
:global downtime [/system clock get time]
:local thetime [/system clock get time]
:local theDate [/system clock get date]
The downtime variable is set when it goes down, and when it comes back up the line above is run. This was working fine, but now fails almost every time.
Obviously the result should be the difference in time between the two times to give total down time.
Try using a global variable for everything. See if that helps or not. It seems I had problems with ‘local’ - probably me just understanding what the scope of local is.