Minor chart fix

This commit is contained in:
Simone Mainardi 2017-03-29 10:20:28 +02:00
parent ec4b7d6e9f
commit 835e4c48ce

View file

@ -1133,7 +1133,7 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
-- Pretty printing for flowdevs/a.b.c.d/e.rrd
local elems = split(prefixLabel, "/")
if(not host:starts('flow_device:') and (elems[#elems] ~= nil) and (#elems > 1)) then
if((elems[#elems] ~= nil) and (#elems > 1)) then
prefixLabel = "Port "..elems[#elems]
port_mode = true
end