aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-01 15:47:34 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-01 15:47:48 -0400
commit5e68fdd1611f1d97270d8181900e022a291e5bd0 (patch)
tree4d81f47eb66a0067ab0bafc26c7ad5ea5a85e812 /src/irc.c
parent15fb9d187d05aed7f80d643fe69ea3dd16cd0e22 (diff)
downloadfujinet-chat-5e68fdd1611f1d97270d8181900e022a291e5bd0.tar.gz
Save some bytes in print_ping_time(). Now 5600 bytes free.
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc.c b/src/irc.c
index d6ed5de..80a910b 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -110,7 +110,7 @@ static void do_priv_nick(void) {
nobody's ping time will ever be more than 9 minutes. anyone
that lagged will have been disconnected from the server already.
if this assumption turns out to be false, the ping time displayed
- will be wrong (module ~9 mins). I don't think it's ever going to be
+ will be wrong (modulo ~9 mins). I don't think it's ever going to be
a real problem.
Why do it this way? Because using longs instead of ints bloats the
code by 778 bytes! */
@@ -128,8 +128,8 @@ static void print_ping_time(char *p) {
sec = pingtime / hz;
frac = pingtime % hz;
- frac *= 1000;
- frac /= (hz * 10);
+ frac *= 100;
+ frac /= hz;
scr_print_active("*** ");
scr_print_active(msg_src);