bugs

Forum > Bugs > Idle for -1 seconds
Reply To Thread (login)
Fishwick [134]
Moderator
2017-03-15 19:50:51
[7 years, 284 days ago]

https://i.imgur.com/oWY0jId.png

Lyrad time traveller confirmed?


 
Fishwick [134]
Moderator
2017-03-15 19:52:23
[7 years, 284 days ago]

Don't have an exact timestamp if you want to look into it, but ~1minute before I posted


 
Gpof2 [130]
2017-03-15 19:54:44
[7 years, 284 days ago]

Lol what the hell. My only guess would be switching browsers or devices mid-session might have something to do with it. Being a time traveler like you said is probably more likely though.


 
Myriad [383]
2017-03-16 07:45:19
[7 years, 283 days ago]

I noticed the same bug some time ago on one of Alan's bots:

http://bots4.net/forum/3/3356


 
Ender [1]
Administrator
2017-11-18 17:50:36
[7 years, 36 days ago]

Thanks, this should be fixed now.

The problem was as I suspected in the other thread - your page request to load the online page took almost a second (836038 microseconds to be precise...I'm glad I have such granular logging, ha) to load and the game's framework caches the "current" time at the start of the request so that it can be used consistently throughout all interactions. Anyway, the result of these two facts is that Lyrad's "last active" time was updated sometime between (a) the start of your request where the "current" time got cached and (b) the end of your request where the game pulled the list of online bots and computed the difference between "now" and when each online bot was last active. I decided to fix this by just changing the result to 0 seconds if a negative number is detected, i.e. max(0, $calculation).

I know, I know...TMI! But someone might find the explanation interesting. :)


 
Forum > Bugs > Idle for -1 seconds
Reply To Thread (login)