]> nos-oignons.net Git - website.git/commitdiff
Correction du calcul de minTime & maxTime pour les graphes de BP.
authoropi <opi@no-log.org>
Sun, 22 Feb 2015 10:09:36 +0000 (11:09 +0100)
committeropi <opi@no-log.org>
Sun, 22 Feb 2015 10:09:36 +0000 (11:09 +0100)
assets/bw_graphs.js

index bcd0216482a96dce8982eb7e3e5138a0280ff47e..900e1266539c58bcc3836b856984a874bacbae28 100644 (file)
@@ -104,11 +104,11 @@ 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);
     });
-    var maxTime = d3.min(raw_data.relays, function(d) {
+    var maxTime = d3.max(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);
     });