diff options
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{} |