From 1961833348c28eff6609ceeed2edd17c6da884a1 Mon Sep 17 00:00:00 2001
From: bol-van <none@none.none>
Date: Thu, 19 Sep 2024 20:06:30 +0300
Subject: [PATCH] nfqws: display correct profiles numbers on SIGUSR2

---
 nfq/nfqws.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/nfq/nfqws.c b/nfq/nfqws.c
index 8d88b66..a6551f0 100644
--- a/nfq/nfqws.c
+++ b/nfq/nfqws.c
@@ -82,12 +82,10 @@ static void onusr2(int sig)
 	printf("\nHOSTFAIL POOL DUMP\n");
 	
 	struct desync_profile_list *dpl;
-	int n=0;
 	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);
-		n++;
 	}
 	
 	printf("\n");