1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

If lag checking period was long, Irssi displayed the (??) until the lag was

checked again.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@212 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-10 13:01:26 +00:00 committed by cras
parent ae5c4164c8
commit afc4fbc223

View File

@ -512,7 +512,8 @@ static void statusbar_lag(SBAR_ITEM_REC *item, int ypos)
if (server == NULL || server->lag_last_check == 0) if (server == NULL || server->lag_last_check == 0)
size_needed = 0; size_needed = 0;
else if (server->lag_sent == 0 || now-server->lag_sent < 5) { else if (server->lag_sent == 0 || now-server->lag_sent < 5) {
lag_unknown = now-server->lag_last_check > MAX_LAG_UNKNOWN_TIME; lag_unknown = now-server->lag_last_check >
MAX_LAG_UNKNOWN_TIME+settings_get_int("lag_check_time");
if (server->lag < lag_min_show && !lag_unknown) if (server->lag < lag_min_show && !lag_unknown)
size_needed = 0; /* small lag, don't display */ size_needed = 0; /* small lag, don't display */