mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add category name in flashstart graphs
This commit is contained in:
parent
7d12a5b58a
commit
01816f3e7d
1 changed files with 3 additions and 1 deletions
|
|
@ -1148,8 +1148,10 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
|
|||
|
||||
--io.write(prefixLabel.."\n")
|
||||
|
||||
if(prefixLabel == "Bytes" or string.starts(rrdFile, 'categories/')) then
|
||||
if(prefixLabel == "Bytes") then
|
||||
prefixLabel = "Traffic"
|
||||
elseif string.starts(rrdFile, "categories/") then
|
||||
prefixLabel = prefixLabel.." Traffic"
|
||||
end
|
||||
|
||||
if(string.contains(rrdFile, "num_") or string.contains(rrdFile, "tcp_") or string.contains(rrdFile, "packets") or string.contains(rrdFile, "drops")) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue