diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-04 10:29:56 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-04 10:29:56 -0700 |
commit | bc88269a7ec9e6868ebb4a33c4de8cd05288f042 (patch) | |
tree | 6cc97ce76f656a6910f978e233d8c520fc3a9800 /system/api/analytics/init.go | |
parent | b87aeda245b08385878d90c2448e21be3a040fd4 (diff) |
initializing map at each index of ips
Diffstat (limited to 'system/api/analytics/init.go')
-rw-r--r-- | system/api/analytics/init.go | 4 |
1 files changed, 4 insertions, 0 deletions
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{} |