mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Various script fixed
Improved error message when scripts fail
This commit is contained in:
parent
a9396720d0
commit
ab34197603
18 changed files with 1592 additions and 1552 deletions
|
|
@ -33,4 +33,15 @@ function noHtml(s)
|
|||
:gsub("^%s*(.-)%s*$", "%1"):gsub(' ', " ")
|
||||
|
||||
return unescape(cleaned)
|
||||
end
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function map_score_to_severity(score)
|
||||
if score ~= nil then
|
||||
return ntop.mapScoreToSeverity(score)
|
||||
end
|
||||
|
||||
return ntop.mapScoreToSeverity(0)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue