Skip to content
Snippets Groups Projects
Commit 5c42cb7d authored by rswindell's avatar rswindell
Browse files

Now displays/logs total number of bytes in messages packed.

parent 1b9e7ebb
No related branches found
No related tags found
No related merge requests found
...@@ -432,12 +432,16 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack) ...@@ -432,12 +432,16 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack)
lprintf(str); lprintf(str);
if((*msgcnt)+mailmsgs && time(NULL)-start) { if((*msgcnt)+mailmsgs && time(NULL)-start) {
bprintf("\r\n\r\n\1n\1hPacked %lu messages in %lu seconds " bprintf("\r\n\r\n\1n\1hPacked %lu messages (%lu bytes) in %lu seconds "
"(%lu messages/second)." "(%lu messages/second)."
,(*msgcnt)+mailmsgs,time(NULL)-start ,(*msgcnt)+mailmsgs
,ftell(qwk)
,time(NULL)-start
,((*msgcnt)+mailmsgs)/(time(NULL)-start)); ,((*msgcnt)+mailmsgs)/(time(NULL)-start));
sprintf(str,"Packed %lu messages in %lu seconds (%lu msgs/sec)" sprintf(str,"Packed %lu messages (%lu bytes) in %lu seconds (%lu msgs/sec)"
,(*msgcnt)+mailmsgs,time(NULL)-start ,(*msgcnt)+mailmsgs
,ftell(qwk)
,time(NULL)-start
,((*msgcnt)+mailmsgs)/(time(NULL)-start)); ,((*msgcnt)+mailmsgs)/(time(NULL)-start));
if(online==ON_LOCAL) /* event */ if(online==ON_LOCAL) /* event */
eprintf(str); eprintf(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment