summaryrefslogtreecommitdiff
path: root/system/api/analytics/init.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-20 08:49:38 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-20 08:49:38 -0800
commit1672f9d977f614b2d01f25fc625b62bfa287966d (patch)
tree8190f52cc090ed23033ef76c2fd17fad5a81bee6 /system/api/analytics/init.go
parent8db2a88623b57ea0c9e5ec7cbe17bce9f4f6ffab (diff)
indicating analytics in chart are GMT
Diffstat (limited to 'system/api/analytics/init.go')
-rw-r--r--system/api/analytics/init.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/api/analytics/init.go b/system/api/analytics/init.go
index 8117f2a..3eccc13 100644
--- a/system/api/analytics/init.go
+++ b/system/api/analytics/init.go
@@ -132,7 +132,8 @@ func serve() {
}
}
-// ChartData returns the map containing decoded javascript needed to chart 2 weeks of data by day
+// ChartData returns the map containing decoded javascript needed to chart RANGE
+// days of data by day
func ChartData() (map[string]interface{}, error) {
// set thresholds for today and the RANGE-1 days preceeding
times := [RANGE]time.Time{}