diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-01 15:47:34 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-01 15:47:48 -0400 |
| commit | 5e68fdd1611f1d97270d8181900e022a291e5bd0 (patch) | |
| tree | 4d81f47eb66a0067ab0bafc26c7ad5ea5a85e812 | |
| parent | 15fb9d187d05aed7f80d643fe69ea3dd16cd0e22 (diff) | |
| download | fujinet-chat-5e68fdd1611f1d97270d8181900e022a291e5bd0.tar.gz | |
Save some bytes in print_ping_time(). Now 5600 bytes free.
| -rw-r--r-- | src/irc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
