Skip to content
Snippets Groups Projects
Commit bbe7f4e2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Display/log nicer original QWK packet message size in bytes

Print the Mbyte estimate.
parent 20ec6bfe
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1072 passed
......@@ -570,16 +570,17 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack)
time_t elapsed = time(NULL)-start;
if(elapsed < 1)
elapsed = 1;
byte_estimate_to_str(ftell(qwk), tmp, sizeof(tmp), 1024, 1);
if(online == ON_REMOTE)
bprintf("\r\n\r\n\1n\1hPacked %lu messages (%lu bytes) in %lu seconds "
bprintf("\r\n\r\n\1n\1hPacked %lu messages (%s bytes) in %lu seconds "
"(%lu messages/second)."
,(*msgcnt)+mailmsgs
,ftell(qwk)
,tmp
,(ulong)elapsed
,((*msgcnt)+mailmsgs) / elapsed);
lprintf(LOG_INFO, "packed %lu messages (%lu bytes) in %lu seconds (%lu msgs/sec)"
lprintf(LOG_INFO, "packed %lu messages (%s bytes) in %lu seconds (%lu msgs/sec)"
,(*msgcnt)+mailmsgs
,ftell(qwk)
,tmp
,(ulong)elapsed
,((*msgcnt)+mailmsgs)/elapsed);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment