Replies: 1 comment 2 replies
-
Interesting: I am usually shutting down my client when I don't use it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems I had the snapserver turned on for a long time, and now the time difference between server and client overflows when calculated in milliseconds,
2^31 / 1000 / 3600 / 24 = 24.855 134 81
. This can be overcome by callingsettimeofday(...)
when appropriate.I'm experimenting with the following:
SnapTime::toMillis(timeval)
andSnapTime::timeDifferenceMs(...)
from uint32_t to int64_t.SnapProcessor::processMessageTime()
I call 'settimeofday()' instead of assert, the part after the trx assignment isThe log when set to show the time difference is:
There's also a detail that can easily be overlooked, the printf format for int64_t is
%lld
with double 'l`.Beta Was this translation helpful? Give feedback.
All reactions