diff options
-rw-r--r-- | system/api/analytics/init.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index e118f89..f9d8ef2 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -104,6 +104,7 @@ func serve() { case <-pruneDBTimer.C: default: + time.Sleep(time.Millisecond * 1) } } } @@ -174,7 +175,7 @@ CHECK_REQUEST: total[j]++ if _, ok := ips[j][requests[i].RemoteAddr]; !ok { - unique[j-1]++ + unique[j]++ ips[j][requests[i].RemoteAddr] = struct{}{} } |