nfqws: display correct profiles numbers on SIGUSR2

This commit is contained in:
bol-van 2024-09-19 20:06:30 +03:00
parent 265120fbce
commit 1961833348

View File

@ -82,12 +82,10 @@ static void onusr2(int sig)
printf("\nHOSTFAIL POOL DUMP\n"); printf("\nHOSTFAIL POOL DUMP\n");
struct desync_profile_list *dpl; struct desync_profile_list *dpl;
int n=0;
LIST_FOREACH(dpl, &params.desync_profiles, next) LIST_FOREACH(dpl, &params.desync_profiles, next)
{ {
printf("\nDESYNC PROFILE %d\n",n); printf("\nDESYNC PROFILE %d\n",dpl->dp.n);
HostFailPoolDump(dpl->dp.hostlist_auto_fail_counters); HostFailPoolDump(dpl->dp.hostlist_auto_fail_counters);
n++;
} }
printf("\n"); printf("\n");