diff options
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/nms-draw-chart.js | 7 |
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 + } + } } }); }); |