diff --git a/js/pages/serverInfo.js b/js/pages/serverInfo.js index 97a2614..576538d 100644 --- a/js/pages/serverInfo.js +++ b/js/pages/serverInfo.js @@ -85,22 +85,6 @@ function ServerInfoPage(params, container) { window._netChart = netChart; }); - netChart.yAxis.axisLabel('Network').tickFormat(function (bytes) { - var fmt = d3.format('.0f'); - if (bytes < 1024) return fmt(bytes) + 'B'; - if (bytes < 1048576) return fmt(bytes / 1024) + 'kB'; - if (bytes < 1073741824) return fmt(bytes / 1048576) + 'MB'; - return fmt(bytes / 1073741824) + 'GB'; - }); - netChart.xAxis.axisLabel('Time').tickFormat(function (d) { return d3.time.format('%H:%M:%S')(new Date(d)); }); - - d3.select('#chart-network').datum([ - { key: 'IN', values: [] }, - { key: 'OUT', values: [] } - ]).call(netChart); - - window._netChart = netChart; - }); nv.addGraph(function () { var playersChart = nv.models.pieChart()