mIRC Home    About    Download    Register    News    Help

Print Thread
#218440 14/02/10 11:09 AM
Joined: Feb 2010
Posts: 2
D
Dazz Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Feb 2010
Posts: 2
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.

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


Invision Support
#Invision on irc.irchighway.net
Riamus2 #218450 14/02/10 03:56 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
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.

Dazz #218451 14/02/10 03:56 PM
Joined: Nov 2009
Posts: 117
Vogon poet
Offline
Vogon poet
Joined: Nov 2009
Posts: 117
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!

gooshie #218452 14/02/10 04:26 PM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
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.

5618 #218453 14/02/10 05:18 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Dazz #219220 09/03/10 05:22 PM
Joined: Dec 2002
Posts: 87
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 87
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
Zmodem #219390 16/03/10 01:24 AM
Joined: Feb 2010
Posts: 2
D
Dazz Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Feb 2010
Posts: 2
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