From e1a0eec442a264967c4f869bc683fa7a9836a818 Mon Sep 17 00:00:00 2001 From: "A. Svensson" Date: Thu, 21 May 2015 18:11:09 +0200 Subject: [PATCH] Clarified time periods for graphs and use one less unneeded graph. --- bin/update_graphs.go | 3 ++- src/templates/gameservers/server_detail.html | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/update_graphs.go b/bin/update_graphs.go index d74c477..5538578 100644 --- a/bin/update_graphs.go +++ b/bin/update_graphs.go @@ -53,7 +53,8 @@ func main() { err := rows.Scan(&id, &title) checkerror(err) createtimegraph(db, "week-time-", id, title, LAST_WEEK) - createweekdaygraph(db, "week-avg_day-", id, title, LAST_WEEK) + createtimegraph(db, "month-time-", id, title, LAST_MONTH) + createweekdaygraph(db, "month-avg_day-", id, title, LAST_MONTH) } err = rows.Err() checkerror(err) diff --git a/src/templates/gameservers/server_detail.html b/src/templates/gameservers/server_detail.html index 15fdfa7..e9d7d2b 100644 --- a/src/templates/gameservers/server_detail.html +++ b/src/templates/gameservers/server_detail.html @@ -53,11 +53,16 @@ -

Weekly history

+

History

+ Last week +
+ + Last month

Average per day

- + + Last month {% endblock %}