]> nos-oignons.net Git - website.git/commitdiff
Correction pour maxTime, on arrête le graph dès qu'1 noeud n'a plus d'info.
authoropi <opi@no-log.org>
Wed, 25 Feb 2015 09:08:18 +0000 (10:08 +0100)
committeropi <opi@no-log.org>
Wed, 25 Feb 2015 09:08:18 +0000 (10:08 +0100)
assets/bw_graphs.js

index 900e1266539c58bcc3836b856984a874bacbae28..b79ebf4b4613f0d12baae00158bf22072eaf430d 100644 (file)
@@ -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);
     });
       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);
     });
       return d['read_history'][period] && BwDrawer.parseTime(d['read_history'][period].last) &&
              d['write_history'][period] && BwDrawer.parseTime(d['write_history'][period].last);
     });