Strange "Time logged in" behavior.

Started by ۞, August 06, 2003, 04:41:37 PM

Previous topic - Next topic

۞

Sometimes it goes... down. Anyone else noticed that? I've seen it go down a minute then immediatley back up on the next click.
TTTTTT  OOOOOO MMMMMM   BBBBBB


Joseph

It's something I have yet to fix - you see what happens is that it pulls the current total from the database...giving you X - your total time online is X plus your currently stored time in the session..let' call it Y - so your total time online is X + Y.

When the update occurs however, here's what happens...

Get X from the database...
Store Xnew=X+Y to the database
Clear Y
show the total on the board (X + Y)

so as you can see - for the display, Y is 0 when it should still have a minute's value.

I need to reset the session's value of X in there at some point - I've just been lazy though ;)
Joseph Fung
Co-Founder & CEO, Kiite
Co-Founder TribeHR, Lewis Media, SMF

Advertisement: