diff --git a/ffmap/web/static/js/graph.js b/ffmap/web/static/js/graph.js index 8651c76..cd2af3a 100644 --- a/ffmap/web/static/js/graph.js +++ b/ffmap/web/static/js/graph.js @@ -66,8 +66,8 @@ function setup_plot_zoom(plot, pdata, num_data_points) { // Per router statistics -function network_graph(netif_stats, tx_label, rx_label) { - var netstat = $("#netstat"); +function network_graph(netif_stats, field, tx_label, rx_label) { + var netstat = $("#"+field); var tx = [], rx = []; var len, i; for (len=netif_stats.length, i=0; i