mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-09-08 11:26:15 -04:00
Added new function.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1713 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
1 parent
812ea88252
commit
3a1668bc19
1 file changed
+9
@@ -282,6 +282,15 @@ sub zmIsAlarmed( $ )
|
||||
|
||||
my $state = zmGetMonitorState( $monitor );
|
||||
|
||||
return( $state == STATE_ALARM );
|
||||
}
|
||||
|
||||
sub zmInAlarm( $ )
|
||||
{
|
||||
my $monitor = shift;
|
||||
|
||||
my $state = zmGetMonitorState( $monitor );
|
||||
|
||||
return( $state == STATE_ALARM || $state == STATE_ALERT );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user