From ce445f2656d05c582fb8dbacc639a9edc1aa0e44 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 8 Oct 2001 22:08:23 +0000 Subject: [PATCH] Max QWK message limit now applies to Q-restricted accounts too. Reduce the frequency of time-slice yields (to ever 50 messages) during packing. --- src/sbbs3/pack_qwk.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/pack_qwk.cpp b/src/sbbs3/pack_qwk.cpp index 5f1fff7446..8434e6f6e9 100644 --- a/src/sbbs3/pack_qwk.cpp +++ b/src/sbbs3/pack_qwk.cpp @@ -410,11 +410,12 @@ bool sbbs_t::pack_qwk(char *packet, ulong *msgcnt, bool prepack) (*msgcnt)++; submsgs++; if(cfg.max_qwkmsgs - && !(useron.rest&FLAG('Q')) && (*msgcnt)>=cfg.max_qwkmsgs) { + /* && !(useron.rest&FLAG('Q')) */ && (*msgcnt)>=cfg.max_qwkmsgs) { bputs(text[QWKmsgLimitReached]); break; } - mswait(1); /* yield */ + if(!(l%50)) + mswait(1); /* yield */ } if(!(sys_status&SS_ABORT)) bprintf(text[QWKPackedSubboard],submsgs,(*msgcnt)); -- GitLab