mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added checks for #497
This commit is contained in:
parent
e64205eaf2
commit
7a34bd7891
1 changed files with 6 additions and 1 deletions
|
|
@ -1981,12 +1981,17 @@ end
|
|||
-- ###############################################
|
||||
|
||||
function tolongint(what)
|
||||
return(string.format("%u", what))
|
||||
if(what == nil) then
|
||||
return(0)
|
||||
else
|
||||
return(string.format("%u", what))
|
||||
end
|
||||
end
|
||||
|
||||
-- ###############################################
|
||||
|
||||
function trimSpace(what)
|
||||
if(what == nil) then return("") end
|
||||
return(string.gsub(what, "%s+", ""))
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue