From: jvoisin <julien.voisin@dustri.org>
Date: Mon, 28 Aug 2023 21:04:48 +0000 (+0200)
Subject: Inversion d'un test dans bw_graphs.js
X-Git-Url: https://nos-oignons.net/gitweb/website.git/commitdiff_plain/da7cb21f20c2d7fcde0c4dbc68b9aa7143fe88fe?ds=sidebyside

Inversion d'un test dans bw_graphs.js
---

diff --git a/assets/bw_graphs.js b/assets/bw_graphs.js
index c7b44d2..80e8cd0 100644
--- a/assets/bw_graphs.js
+++ b/assets/bw_graphs.js
@@ -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';
   });