From a2cbf2d7626e48e63ca254f97f177ebcc93c8fd4 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 21 May 2021 03:51:32 +0200 Subject: [PATCH] Fixed ip, ipv4 and ipv6 final count in probing. --- src/fr/devinsy/statoolinfos/metrics/http/IpCounters.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/metrics/http/IpCounters.java b/src/fr/devinsy/statoolinfos/metrics/http/IpCounters.java index 47cab31..cb683b9 100644 --- a/src/fr/devinsy/statoolinfos/metrics/http/IpCounters.java +++ b/src/fr/devinsy/statoolinfos/metrics/http/IpCounters.java @@ -69,7 +69,6 @@ public class IpCounters extends HashMap for (String timeMark : keySet()) { StringSet set = get(timeMark); - result.inc(set.size(), prefix, timeMark); } @@ -87,7 +86,7 @@ public class IpCounters extends HashMap */ public void put(final String ip, final String timemark) { - StringSet set = super.get(ip); + StringSet set = super.get(timemark); if (set == null) { set = new StringSet();