Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorIvan Sein <ivan@struktur.de>2016-08-29 13:38:25 +0300
committerIvan Sein <ivan@struktur.de>2016-08-29 13:38:25 +0300
commitc2f152e380a5feab44cf36352a76c5b697360b96 (patch)
tree1c5b824d6f4450ffd49086f48dda7113b1765a6f /js
parent076a4f29d7c96babf3f89651563460037654fdf8 (diff)
fix active users chart
Diffstat (limited to 'js')
-rw-r--r--js/script.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/script.js b/js/script.js
index 9239ed3..f4111f9 100644
--- a/js/script.js
+++ b/js/script.js
@@ -180,7 +180,7 @@
function updateActiveUsersStatistics (activeUsers) {
- var activeusers_data = [activeUsers.last5minutes, activeUsers.last1hour, activeUsers.last24hours];
+ var activeusers_data = [activeUsers.last24hours, activeUsers.last1hour, activeUsers.last5minutes],
stepSize = 0;
if (Math.max.apply(null, activeusers_data) < 10) {stepSize = 1;}
@@ -191,7 +191,7 @@
activeusersChart = new Chart(ctx, {
type: 'line',
data: {
- labels: ["Last 5 mins", "Last 1 hour", "Last 24 hours"],
+ labels: ["Last 24 hours", "Last 1 hour", "Last 5 mins"],
datasets: [{
label: " ",
data: activeusers_data,
@@ -209,6 +209,7 @@
pointHoverBorderWidth: 1,
pointRadius: 5,
pointHitRadius: 10,
+ lineTension:0
}]
},
options: {
@@ -224,8 +225,6 @@
}
});
}
-
- $('#numFilesStorage').text(' hola' + activeUsers.last5minutes);
}
function updatePHPStatistics (php) {