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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user