From ec24c82e5c6fafaa4af4f492336bf21749b17866 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 27 Jan 2004 17:07:20 +0000 Subject: [PATCH] Changed CHECK_IMAGES config to DIAG_IMAGES. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@788 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_event.cpp | 2 +- src/zm_monitor.cpp | 4 ++-- src/zm_zone.cpp | 8 ++++---- zmconfig.pl.in | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 8e364dc39..c4fe91fe2 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -277,7 +277,7 @@ void Event::AddFrame( struct timeval timestamp, const Image *image, unsigned int } } - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { char diag_glob[PATH_MAX] = ""; diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index dc0b27a7e..b9f7e9022 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -1140,7 +1140,7 @@ unsigned int Monitor::Compare( const Image &comp_image ) if ( n_zones <= 0 ) return( alarm ); - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { static char diag_path[PATH_MAX] = ""; if ( !diag_path[0] ) @@ -1152,7 +1152,7 @@ unsigned int Monitor::Compare( const Image &comp_image ) Image *delta_image = ref_image.Delta( comp_image ); - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { static char diag_path[PATH_MAX] = ""; if ( !diag_path[0] ) diff --git a/src/zm_zone.cpp b/src/zm_zone.cpp index 70c366d2a..26141f084 100644 --- a/src/zm_zone.cpp +++ b/src/zm_zone.cpp @@ -105,7 +105,7 @@ bool Zone::CheckAlarms( const Image *delta_image ) *pdiff = BLACK; } } - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { static char diag_path[PATH_MAX] = ""; if ( !diag_path[0] ) @@ -174,7 +174,7 @@ bool Zone::CheckAlarms( const Image *delta_image ) } } } - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { static char diag_path[PATH_MAX] = ""; if ( !diag_path[0] ) @@ -321,7 +321,7 @@ bool Zone::CheckAlarms( const Image *delta_image ) } } } - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { static char diag_path[PATH_MAX] = ""; if ( !diag_path[0] ) @@ -373,7 +373,7 @@ bool Zone::CheckAlarms( const Image *delta_image ) } } } - if ( (bool)config.Item( ZM_RECORD_CHECK_IMAGES ) ) + if ( (bool)config.Item( ZM_RECORD_DIAG_IMAGES ) ) { static char diag_path[PATH_MAX] = ""; if ( !diag_path[0] ) diff --git a/zmconfig.pl.in b/zmconfig.pl.in index 3a9c12edc..3e18a3b12 100755 --- a/zmconfig.pl.in +++ b/zmconfig.pl.in @@ -788,10 +788,10 @@ my @options = category => 'system', }, { - name => "ZM_RECORD_CHECK_IMAGES", + name => "ZM_RECORD_DIAG_IMAGES", default => "no", - description => "Whether to record intermediate alarm check images, can be very slow", - help => "In addition to recording event statistics you can now also record the intermediate images that display the results of the various checks and processing that occur when trying to determine if an alarm event has taken place. There are up to four of these images generated for each zone for each alarm or alert frame so this can have a massive impact on performance. Only switch this setting on for debug or analysis purposes and remember to switch it off again once no longer required.", + description => "Whether to record intermediate alarm diagnostic images, can be very slow", + help => "In addition to recording event statistics you can also record the intermediate diagnostic images that display the results of the various checks and processing that occur when trying to determine if an alarm event has taken place. There are several of these images generated for each frame and zone for each alarm or alert frame so this can have a massive impact on performance. Only switch this setting on for debug or analysis purposes and remember to switch it off again once no longer required.", type => $types{boolean}, category => 'system', },