Commit c018dfb8 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Use smb_msg_type() to include poll messages in total message count.

Don't exclude polls form the message count used for max_msgs enforcement
during maintenance.
parent a3e430e0
......@@ -779,7 +779,8 @@ void maint(void)
printf("Scanning for read messages to be killed...\n");
uint32_t total_msgs = 0;
for(m=f=0;m<l;m++) {
enum smb_msg_type type = smb_msg_type(idx[m].attr);
if(type == SMB_MSG_TYPE_NORMAL || type == SMB_MSG_TYPE_POLL)
// printf("\r%2lu%%",m ? (long)(100.0/((float)l/m)) : 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment