1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add

This commit is contained in:
Sébastien Helleu
2014-08-29 18:17:27 +02:00
parent ddd829a1c7
commit 7b546bea2e
15 changed files with 133 additions and 62 deletions
+2 -2
View File
@@ -1633,8 +1633,8 @@ IRC_PROTOCOL_CALLBACK(pong)
/* calculate lag (time diff with lag check) */
old_lag = server->lag;
gettimeofday (&tv, NULL);
server->lag = (int) weechat_util_timeval_diff (&(server->lag_check_time),
&tv);
server->lag = (int)(weechat_util_timeval_diff (&(server->lag_check_time),
&tv) / 1000);
if (old_lag != server->lag)
weechat_bar_item_update ("lag");