From fdbb18c3f8c90f94c641a01ac65a4ec82400ce16 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 4 Nov 2007 17:36:30 +0000 Subject: [PATCH] Fixed force/disable alarm buttons. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2232 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_monitor.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index e90bce468..5e5188eb4 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -2753,6 +2753,8 @@ void MonitorStream::processCommand( const CmdMsg *msg ) int rate; double delay; int zoom; + bool enabled; + bool forced; } status_data; status_data.fps = monitor->GetFPS(); @@ -2763,13 +2765,18 @@ void MonitorStream::processCommand( const CmdMsg *msg ) status_data.rate = replay_rate; status_data.delay = TV_2_FLOAT( now ) - TV_2_FLOAT( last_frame_timestamp ); status_data.zoom = zoom; - Debug( 2, ( "L:%d, D:%d, P:%d, R:%d, d:%.3f, Z:%d", + //status_data.enabled = monitor->shared_data->active; + status_data.enabled = monitor->trigger_data->trigger_state!=Monitor::TRIGGER_OFF; + status_data.forced = monitor->trigger_data->trigger_state==Monitor::TRIGGER_ON; + Debug( 2, ( "L:%d, D:%d, P:%d, R:%d, d:%.3f, Z:%d, E:%d F:%d", status_data.buffer_level, status_data.delayed, status_data.paused, status_data.rate, status_data.delay, - status_data.zoom + status_data.zoom, + status_data.enabled, + status_data.forced )); DataMsg status_msg;