]> nos-oignons.net Git - website.git/blobdiff - assets/bw_graphs.js
typo sur page snowflake
[website.git] / assets / bw_graphs.js
index dbeb1cfb155a95cac324fd66a25f171a806cc638..80e8cd0239e7cfbcdeeeb0f4257394832adf6224 100644 (file)
@@ -62,8 +62,8 @@ BwDrawer.color.range(nos_oignons_relays.map(function(r) {return r.color}));
 
 BwDrawer.draw_bandwidth_graph = function(raw_data, selector, period) {
   // Purge non running relays
-  raw_data.relays = raw_data.relays.filter(function(relay) {
-    return typeof r.read_history === 'undefined' || typeof r.write_history === 'undefined';
+  raw_data.relays = raw_data.relays.filter(function(r) {
+    return typeof r.read_history !== 'undefined' && typeof r.write_history !== 'undefined';
   });