aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-draw-chart.js
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com>2018-03-17 03:54:28 +0100
committerOle Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com>2018-03-17 03:54:51 +0100
commit8607a0880724eca35c220f7c26a138d9f0f50f72 (patch)
tree4d322306c32f1fb2a05bb876fb1f9e2634566a48 /web/js/nms-draw-chart.js
parent537c16511dc23436305d1dbc137be7ca42a6e6b5 (diff)
Small change to latency chart
Diffstat (limited to 'web/js/nms-draw-chart.js')
-rw-r--r--web/js/nms-draw-chart.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/js/nms-draw-chart.js b/web/js/nms-draw-chart.js
index 056a95f..b45d771 100644
--- a/web/js/nms-draw-chart.js
+++ b/web/js/nms-draw-chart.js
@@ -10,7 +10,7 @@ function setNightModeChart(night) {
}
function drawLatency(canvas, sw) {
- var q = encodeURIComponent('SELECT mean("latency") AS "mean_latency" FROM "ping" WHERE time > now() - 15m AND "switch"=\''+sw+'\' GROUP BY time(60s), "version" fill(null)');
+ var q = encodeURIComponent('SELECT mean("latency") AS "mean_latency" FROM "ping" WHERE time > now() - 30m AND "switch"=\''+sw+'\' GROUP BY time(60s), "version" fill(null)');
var dataset = [];
$.getJSON( "/query?db=gondul&q="+q, function( results ) {
@@ -46,6 +46,11 @@ function drawLatency(canvas, sw) {
},
responsive: true,
animation: false,
+ elements: {
+ line: {
+ tension: 0.05
+ }
+ }
}
});
});