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

Lag statusbar item isn't anymore displayed always

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1872 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-21 10:25:37 +00:00 committed by cras
parent b5fa93c6e7
commit 79212504ec

View File

@ -91,7 +91,7 @@ static void item_lag(SBAR_ITEM_REC *item, int get_size_only)
if (server->lag_sent == 0 || now-server->lag_sent < 5) { if (server->lag_sent == 0 || now-server->lag_sent < 5) {
lag_unknown = now-server->lag_last_check > lag_unknown = now-server->lag_last_check >
MAX_LAG_UNKNOWN_TIME+settings_get_int("lag_check_time"); MAX_LAG_UNKNOWN_TIME+settings_get_int("lag_check_time");
lag_min_show = settings_get_int("lag_min_show"); lag_min_show = settings_get_int("lag_min_show")*10;
if (lag_min_show < 0 || (server->lag < lag_min_show && !lag_unknown)) { if (lag_min_show < 0 || (server->lag < lag_min_show && !lag_unknown)) {
/* small lag, don't display */ /* small lag, don't display */