X-Git-Url: https://nos-oignons.net/gitweb/website.git/blobdiff_plain/6a714d11b69b8f4cb89d981ba48d75b17a0f69f8..da7cb21f20c2d7fcde0c4dbc68b9aa7143fe88fe:/assets/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'; });