From 1647be59c1e4ecbb4a8659c4515dc0e77b6a0281 Mon Sep 17 00:00:00 2001 From: opi Date: Wed, 25 Feb 2015 10:08:18 +0100 Subject: [PATCH] =?utf8?q?Correction=20pour=20maxTime,=20on=20arr=C3=AAte?= =?utf8?q?=20le=20graph=20d=C3=A8s=20qu'1=20noeud=20n'a=20plus=20d'info.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- assets/bw_graphs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/bw_graphs.js b/assets/bw_graphs.js index 900e126..b79ebf4 100644 --- a/assets/bw_graphs.js +++ b/assets/bw_graphs.js @@ -108,7 +108,7 @@ BwDrawer.draw_bandwidth_graph = function(raw_data, selector, period) { return d['read_history'][period] && BwDrawer.parseTime(d['read_history'][period].first) && d['write_history'][period] && BwDrawer.parseTime(d['write_history'][period].first); }); - var maxTime = d3.max(raw_data.relays, function(d) { + var maxTime = d3.min(raw_data.relays, function(d) { return d['read_history'][period] && BwDrawer.parseTime(d['read_history'][period].last) && d['write_history'][period] && BwDrawer.parseTime(d['write_history'][period].last); }); -- 2.39.5