mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed 95th percentile calculation
Added average value in leu of min value (in pro version)
This commit is contained in:
parent
c3feb47f54
commit
740a58f9d7
2 changed files with 45 additions and 6 deletions
|
|
@ -717,7 +717,10 @@ end
|
|||
-- print(_key .. "=" .. _value .. "\n")
|
||||
--end
|
||||
|
||||
function round(num, idp) return tonumber(string.format("%." .. (idp or 0) .. "f", num)) end
|
||||
function round(num, idp)
|
||||
if(num == nil) then return(0) end
|
||||
return tonumber(string.format("%." .. (idp or 0) .. "f", num))
|
||||
end
|
||||
--function round(num) return math.floor(num+.5) end
|
||||
|
||||
-- Note that the function below returns a string as returning a number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue