diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-15 13:47:51 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-15 13:47:51 +0000 |
commit | c6302cd6e72963d755ebf3aae3bda11b066bc21c (patch) | |
tree | a4b072c7426fce3c50cfaf6b9bacf750e63a653c /src/fe-text | |
parent | 4d771c54d9e1396792248f611453cbfccfad9570 (diff) | |
download | irssi-c6302cd6e72963d755ebf3aae3bda11b066bc21c.zip |
Lag checking fixes - should work fine again.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2016 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/statusbar-items.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index da485d5b..e6f23797 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -89,7 +89,7 @@ static void item_lag(SBAR_ITEM_REC *item, int get_size_only) str = g_string_new(NULL); /* FIXME: ugly ugly.. */ - if (server->lag_sent == 0 || now-server->lag_sent < 5) { + if (server->lag_sent.tv_sec == 0 || now-server->lag_sent.tv_sec < 5) { lag_unknown = now-server->lag_last_check > MAX_LAG_UNKNOWN_TIME+settings_get_int("lag_check_time"); lag_min_show = settings_get_int("lag_min_show")*10; @@ -105,7 +105,7 @@ static void item_lag(SBAR_ITEM_REC *item, int get_size_only) } else { /* big lag, still waiting .. */ g_string_sprintfa(str, "%ld (?""?)", - (long) (now-server->lag_sent)); + (long) (now-server->lag_sent.tv_sec)); } if (str->len != 0) { |