mIRC Home    About    Download    Register    News    Help

Print Thread
#218440 14/02/10 11:09 AM
D
Dazz
Dazz
D
Tried to search for a similar topic about this bug, but I didn't find it, so here we go:

I noticed a little bug with timers; if timer's interval is over 19327352 seconds, it will execute the command immediately.

/timertest 1 19327352 echo works like it should
/timertest 1 19327353 echo executes the command immediately

I tried it only with newest mIRC and with Windows 7.

#218446 14/02/10 02:51 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
That's because there is a limit on how long you can make the timer.

Riamus2 #218450 14/02/10 03:56 PM
5
5618
5618
5
A timer that long (31 weeks, 6 days plus) is silly and inaccurate anyway. It should be set to start at the date if used at all.

#218451 14/02/10 03:56 PM
G
gooshie
gooshie
G
As a sorta work arround you could install the following code into the perform section of options.
Code:
/timer_Time2REBOOT 1 19327352 echo Congratulations! You have just set the world record for not having to reboot windows! To collect your prize turn off your computer and go outside!

#218452 14/02/10 04:26 PM
5
5618
5618
5
That's hardly a record... I've had uptimes of over 15 weeks without problems.
But we're getting off-topic now.

The nature of the limit is unclear though for me. It's not the regular 32-bit value limit.

#218453 14/02/10 05:18 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Yeah, not sure the reason for a limit on it, but it's been commented on in the past. Using a date is much better as you mentioned if you need it that long. That or have it check every X minutes/hours/days/etc and if $ctime - original $ctime > whatever amount, do something. It won't be exact to the second, but something THAT far into the future probably doesn't need to be that exact anyhow.

#219220 09/03/10 05:22 PM
Joined: Dec 2002
Posts: 85
Z
Babel fish
Offline
Babel fish
Z
Joined: Dec 2002
Posts: 85
If, however, you must have a lengthy timer, for whatever insane reason that may be, why not split the timer by dividing it in half? ie: 9663676 = 19327352 / 2

That way, you could use multiple timers that execute after the first, second, etc, has stopped.

Zmodem #219390 16/03/10 01:24 AM
D
Dazz
Dazz
D
It's not that I need a timer like that, but I don't see any reason why the maximum interval must be exactly "19327352" (especially when there isn't any mention about it anywhere or anything).

Some error message would be nicer than unexpected flood.


Link Copied to Clipboard