From 5e68fdd1611f1d97270d8181900e022a291e5bd0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 1 Apr 2026 15:47:34 -0400 Subject: Save some bytes in print_ping_time(). Now 5600 bytes free. --- src/irc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/irc.c') 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); -- cgit v1.2.3