From 8e0d1cd516ff2c017cc2c0fe5d2e227f0c64c8ac Mon Sep 17 00:00:00 2001 From: codemastr Date: Tue, 18 Jan 2005 16:50:53 +0000 Subject: [PATCH] Fixed a problem with set::htm::incoming-rate being interpreted incorrectly --- Changes | 2 ++ src/modules/m_htm.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index cb8db14c9..b0dacf6cb 100644 --- a/Changes +++ b/Changes @@ -534,3 +534,5 @@ the ircd (#0002120) reported by SineSwiper. - Made it so +f notices are sent to %#chan, not @%#chan (#0002248) reported by aquanight. - Hopefully fixed the last of the alloca warnings (#0002202) reported by Stoebi. +- Fixed a problem with set::htm::incoming-rate being interpreted incorrectly (#0002266) + reported by tabrisnet. diff --git a/src/modules/m_htm.c b/src/modules/m_htm.c index 0303df660..29dd19aaa 100644 --- a/src/modules/m_htm.c +++ b/src/modules/m_htm.c @@ -463,7 +463,10 @@ DLLFUNC int htm_config_run(ConfigFile *cf, ConfigEntry *ce, int type) { noisy_htm = 0; } else if (!strcmp(cep->ce_varname, "incoming-rate")) + { LRV = config_checkval(cep->ce_vardata, CFG_SIZE); + LRV /= 1024; + } } return 1; } @@ -474,7 +477,7 @@ DLLFUNC int htm_stats(aClient *sptr, char *stats) { if (*stats == 'S') { sendto_one(sptr, ":%s %i %s :htm::mode: %s", me.name, RPL_TEXT, sptr->name, noisy_htm ? "noisy" : "quiet"); - sendto_one(sptr, ":%s %i %s :htm::incoming-rate: %d", me.name, RPL_TEXT, + sendto_one(sptr, ":%s %i %s :htm::incoming-rate: %d kb/s", me.name, RPL_TEXT, sptr->name, LRV); } return 0;