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