From 8607a0880724eca35c220f7c26a138d9f0f50f72 Mon Sep 17 00:00:00 2001 From: "Ole Mathias Aa. Heggem" Date: Sat, 17 Mar 2018 03:54:28 +0100 Subject: Small change to latency chart --- web/js/nms-draw-chart.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web/js') 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 + } + } } }); }); -- cgit v1.2.3