]> nos-oignons.net Git - website.git/commitdiff
Inversion d'un test dans bw_graphs.js
authorjvoisin <julien.voisin@dustri.org>
Mon, 28 Aug 2023 21:04:48 +0000 (23:04 +0200)
committerjvoisin <julien.voisin@dustri.org>
Mon, 28 Aug 2023 21:04:48 +0000 (23:04 +0200)
assets/bw_graphs.js

index c7b44d2f61ab1c278808cb654199cd10282bb2c5..80e8cd0239e7cfbcdeeeb0f4257394832adf6224 100644 (file)
@@ -63,7 +63,7 @@ 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(r) {
-    return typeof r.read_history === 'undefined' || typeof r.write_history === 'undefined';
+    return typeof r.read_history !== 'undefined' && typeof r.write_history !== 'undefined';
   });