mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Refactors NtopngUtils into NtopUtils
This commit is contained in:
parent
e61f9ffe68
commit
1ae2b2d932
59 changed files with 414 additions and 414 deletions
|
|
@ -63,7 +63,7 @@ function sankey() {
|
|||
height = h - margin.top - margin.bottom;
|
||||
|
||||
var formatNumber = d3.format(",.0f"),
|
||||
format = function(sent, rcvd) { return "[sent: " + NtopngUtils.bytesToVolume(sent) + ", rcvd: " + NtopngUtils.bytesToVolume(rcvd)+"]"; },
|
||||
format = function(sent, rcvd) { return "[sent: " + NtopUtils.bytesToVolume(sent) + ", rcvd: " + NtopUtils.bytesToVolume(rcvd)+"]"; },
|
||||
color = d3.scale.category20();
|
||||
|
||||
]]
|
||||
|
|
@ -219,7 +219,7 @@ print(url.."hosts=".._GET["hosts"])
|
|||
|
||||
|
||||
link.append("title")
|
||||
.text(function(d) { return d.source.name + " - " + d.target.name + "\n" + NtopngUtils.bytesToVolume(d.value)+ "\n Double click to show more information about this flows." ; });
|
||||
.text(function(d) { return d.source.name + " - " + d.target.name + "\n" + NtopUtils.bytesToVolume(d.value)+ "\n Double click to show more information about this flows." ; });
|
||||
debugger;
|
||||
var node = svg_sankey.append("g").selectAll(".node")
|
||||
.data(hosts.nodes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue