From bc88269a7ec9e6868ebb4a33c4de8cd05288f042 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 4 Nov 2016 10:29:56 -0700 Subject: initializing map at each index of ips --- system/api/analytics/init.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system/api/analytics/init.go') diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index 3d7428e..c9e3dd9 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -154,6 +154,10 @@ func Week() (map[string]interface{}, error) { } ips := [7]map[string]struct{}{} + for i := range ips { + ips[i] = make(map[string]struct{}) + } + total := [7]int{} unique := [7]int{} -- cgit v1.2.3