| // The date portion would be repeated on every 397 days
|
I don't think this is good enough. If a server stay up longer than 397 days, we could
get overlaps.
What you could do, is instead of taking the full time value down to the milliseconds,
ignore the rightmost 9 or 10 bits, so the time is only precise to the nearest second or
so.
There is more possibility of the counter wrapping then, but it means the server can stay
up many years without overlaps.
Also why 20 ms? and the <0 loop looks suspicious to me
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179173#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...