]> nos-oignons.net Git - website.git/blobdiff - assets/bw_graphs.js
Correction d'une erreur dans la traduction
[website.git] / assets / bw_graphs.js
index 900e1266539c58bcc3836b856984a874bacbae28..b6147b6d0d16a624a62e4915e7577f8ecf80c062 100644 (file)
@@ -40,8 +40,6 @@ BwDrawer.write_stack = d3.layout.stack()
 BwDrawer.onionoo_url = "https://onionoo.torproject.org/bandwidth?type=relay&contact=adminsys@nos-oignons.net";
 
 BwDrawer.periods = [
 BwDrawer.onionoo_url = "https://onionoo.torproject.org/bandwidth?type=relay&contact=adminsys@nos-oignons.net";
 
 BwDrawer.periods = [
-    { id: "3_days", label: L10n.t_3_days },
-    { id: "1_week", label: L10n.t_1_week },
     { id: "1_month", label: L10n.t_1_month },
     { id: "3_months", label: L10n.t_3_months },
     { id: "1_year", label: L10n.t_1_year },
     { id: "1_month", label: L10n.t_1_month },
     { id: "3_months", label: L10n.t_3_months },
     { id: "1_year", label: L10n.t_1_year },
@@ -108,7 +106,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);
     });