summaryrefslogtreecommitdiff
path: root/src/irc/core/lag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/lag.c')
-rw-r--r--src/irc/core/lag.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/core/lag.c b/src/irc/core/lag.c
index e919b3fc..7d4f51ed 100644
--- a/src/irc/core/lag.c
+++ b/src/irc/core/lag.c
@@ -88,8 +88,8 @@ static int sig_check_lag(void)
time_t now;
int lag_check_time, max_lag;
- lag_check_time = settings_get_int("lag_check_time");
- max_lag = settings_get_int("lag_max_before_disconnect");
+ lag_check_time = settings_get_time("lag_check_time")/1000;
+ max_lag = settings_get_time("lag_max_before_disconnect")/1000;
if (lag_check_time <= 0)
return 1;
@@ -122,8 +122,8 @@ static int sig_check_lag(void)
void lag_init(void)
{
- settings_add_int("misc", "lag_check_time", 60);
- settings_add_int("misc", "lag_max_before_disconnect", 300);
+ settings_add_time("misc", "lag_check_time", "1min");
+ settings_add_time("misc", "lag_max_before_disconnect", "5min");
timeout_tag = g_timeout_add(1000, (GSourceFunc) sig_check_lag, NULL);
signal_add_first("lag pong", (SIGNAL_FUNC) lag_event_pong);