mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Minor optimiations
This commit is contained in:
parent
fdf534996d
commit
c119f7fa8e
5 changed files with 20 additions and 4 deletions
|
|
@ -268,7 +268,7 @@ local function number_to_rrd_string(what, schema)
|
|||
err_msg = "Trying to convert NaN to integer"
|
||||
elseif (what == math.huge) then
|
||||
err_msg = "Trying to convert inf to integer"
|
||||
elseif ((what >= math.maxinteger) or (what <= math.mininteger)) then
|
||||
elseif (math.maxinteger and ((what >= math.maxinteger) or (what <= math.mininteger))) then
|
||||
err_msg = "Number out of integers range: " .. what
|
||||
elseif what == math.floor(what) then
|
||||
-- If the number has no decimal place, print it as a digit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue