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 },
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);
});