mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Minor non-zero point check in graphs
This commit is contained in:
parent
740a58f9d7
commit
d1dad57ff4
2 changed files with 44 additions and 12 deletions
|
|
@ -1442,7 +1442,13 @@ function singlerrd2json(ifid, host, rrdFile, start_time, end_time, rickshaw_json
|
|||
ret.percentile = round(percentile, 0)
|
||||
ret.average = round(average, 0)
|
||||
ret.json = json_ret
|
||||
ret.duration = last_time - first_time
|
||||
|
||||
if(last_time ~= nil) then
|
||||
ret.duration = last_time - first_time
|
||||
else
|
||||
ret.duration = 1
|
||||
end
|
||||
|
||||
return(ret)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue