mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fixes host activity alert
This commit is contained in:
parent
0d15c513ed
commit
d85302d80f
6 changed files with 19 additions and 22 deletions
|
|
@ -47,7 +47,7 @@ end
|
|||
|
||||
function active(old, new, interval)
|
||||
if(verbose) then print("active("..interval..")") end
|
||||
local diff = new["duration"] - old["duration"]
|
||||
local diff = (new["total_activity_time"] or 0) - (old["total_activity_time"] or 0)
|
||||
return(diff)
|
||||
end
|
||||
|
||||
|
|
@ -987,9 +987,6 @@ function drawAlertSourceSettings(alert_source, delete_button_msg, delete_confirm
|
|||
if((vals[k] ~= nil) and (vals[k][1] == "gt")) then print("<option selected=\"selected\"") else print("<option ") end
|
||||
print("value=\"gt\">></option>\n")
|
||||
|
||||
if((vals[k] ~= nil) and (vals[k][1] == "eq")) then print("<option selected=\"selected\"") else print("<option ") end
|
||||
print("value=\"eq\">=</option>\n")
|
||||
|
||||
if((vals[k] ~= nil) and (vals[k][1] == "lt")) then print("<option selected=\"selected\"") else print("<option ") end
|
||||
print("value=\"lt\"><</option>\n")
|
||||
print("</select>\n")
|
||||
|
|
@ -1079,10 +1076,9 @@ function drawAlertSourceSettings(alert_source, delete_button_msg, delete_confirm
|
|||
|
||||
</th> </tr>
|
||||
|
||||
|
||||
|
||||
</tbody> </table>
|
||||
]]
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue