Commit 3e1e8b9f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix computation of update_flush timeouts to have sub-second precision.

parent 3580913a
......@@ -654,7 +654,7 @@ main(int argc, char **argv)
resend_requests();
if(update_flush_timeout.tv_sec != 0) {
if(now.tv_sec >= update_flush_timeout.tv_sec)
if(timeval_compare(&now, &update_flush_timeout) >= 0)
flushupdates();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment