mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixed version check
This commit is contained in:
parent
368381135f
commit
80e248fc35
4 changed files with 10 additions and 7 deletions
|
|
@ -1240,7 +1240,7 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
|
|||
-- rrds into bits.
|
||||
local scaling_factor = 8
|
||||
|
||||
-- io.write(prefixLabel.."\n")
|
||||
--io.write(prefixLabel.."\n")
|
||||
if(prefixLabel == "Bytes") then
|
||||
prefixLabel = "Traffic"
|
||||
end
|
||||
|
|
@ -1325,7 +1325,8 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
|
|||
sampling = sampling + 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- get maximum and minimum values straight from the totals table
|
||||
maxval_time, maxval = tmax(totalval)
|
||||
minval_time, minval = tmin(totalval)
|
||||
|
|
@ -1337,7 +1338,7 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
|
|||
local tot = 0
|
||||
for k, v in pairs(totalval) do tot = tot + v end
|
||||
totalval = tot
|
||||
|
||||
|
||||
local percentile = 0.95*maxval
|
||||
local average = totalval / num_points_found
|
||||
local colors = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue