Skip to content
Snippets Groups Projects
Commit c018dfb8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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++) {
if(!(idx[m].attr&(MSG_POLL|MSG_VOTE)))
enum smb_msg_type type = smb_msg_type(idx[m].attr);
if(type == SMB_MSG_TYPE_NORMAL || type == SMB_MSG_TYPE_POLL)
total_msgs++;
// printf("\r%2lu%%",m ? (long)(100.0/((float)l/m)) : 0);
if(idx[m].attr&(MSG_PERMANENT|MSG_DELETE))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment