]> nos-oignons.net Git - website.git/blobdiff - assets/bw_graphs.js
en voulant corriger une type, le cpu indique n'etait pas correcte
[website.git] / assets / bw_graphs.js
index bcd0216482a96dce8982eb7e3e5138a0280ff47e..b79ebf4b4613f0d12baae00158bf22072eaf430d 100644 (file)
@@ -104,7 +104,7 @@ BwDrawer.draw_bandwidth_graph = function(raw_data, selector, period) {
         throw "PANIC: Different interval for different relays in the same time period.";
       }
     });
-    var minTime = d3.max(raw_data.relays, function(d) {
+    var minTime = d3.min(raw_data.relays, function(d) {
       return d['read_history'][period] && BwDrawer.parseTime(d['read_history'][period].first) &&
              d['write_history'][period] && BwDrawer.parseTime(d['write_history'][period].first);
     });