diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-04 15:18:55 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-04 15:18:55 -0700 |
commit | eead663156d6b6cb300c96fcf90d3f804e4a5952 (patch) | |
tree | 19580ee7fdce74f6ee80d3d7f96e6feba35bb326 /system/api/analytics/init.go | |
parent | c6d2f51415e6e65d3b14904670c4e2e700ecfdaa (diff) |
testing 2 week chart
Diffstat (limited to 'system/api/analytics/init.go')
-rw-r--r-- | system/api/analytics/init.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go index 68881b6..14eff7f 100644 --- a/system/api/analytics/init.go +++ b/system/api/analytics/init.go @@ -108,8 +108,8 @@ func serve() { // Week returns the map containing decoded javascript needed to chart a week of data by day func Week() (map[string]interface{}, error) { // set thresholds for today and the 6 days preceeding - times := [7]time.Time{} - dates := [7]string{} + times := [14]time.Time{} + dates := [14]string{} now := time.Now() today := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, time.UTC) @@ -150,13 +150,13 @@ func Week() (map[string]interface{}, error) { return nil, err } - ips := [7]map[string]struct{}{} + ips := [14]map[string]struct{}{} for i := range ips { ips[i] = make(map[string]struct{}) } - total := [7]int{} - unique := [7]int{} + total := [14]int{} + unique := [14]int{} CHECK_REQUEST: for i := range requests { |