X-Git-Url: https://nos-oignons.net/gitweb/website.git/blobdiff_plain/3c424d37cc1c861916564a407d0818d95379c237..fbf14143d7e83906561964cc72d113f899bdee36:/assets/bw_graphs.js?ds=inline 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); });