From f4597fe4ee797a8e54c7e4b782b41ef219a05d4b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 14 Oct 2002 10:29:50 +0000 Subject: [PATCH] Bell overload was working in principle, but wasn't scaled to Unix's greater time resolution. Oops. [originally from svn r2049] --- settings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.c b/settings.c index e9053975..13a93595 100644 --- a/settings.c +++ b/settings.c @@ -451,8 +451,8 @@ void load_settings(char *section, int do_host, Config * cfg) sizeof(cfg->bell_wavefile)); gppi(sesskey, "BellOverload", 1, &cfg->bellovl); gppi(sesskey, "BellOverloadN", 5, &cfg->bellovl_n); - gppi(sesskey, "BellOverloadT", 2000, &cfg->bellovl_t); - gppi(sesskey, "BellOverloadS", 5000, &cfg->bellovl_s); + gppi(sesskey, "BellOverloadT", 2*TICKSPERSEC, &cfg->bellovl_t); + gppi(sesskey, "BellOverloadS", 5*TICKSPERSEC, &cfg->bellovl_s); gppi(sesskey, "ScrollbackLines", 200, &cfg->savelines); gppi(sesskey, "DECOriginMode", 0, &cfg->dec_om); gppi(sesskey, "AutoWrapMode", 1, &cfg->wrap_mode);