Now only dumps images when required.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@232 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-01-03 15:07:55 +00:00
parent d1e08d888f
commit 111c2c84e4
2 changed files with 3 additions and 1 deletions

View File

@ -1785,7 +1785,7 @@ bool Monitor::Analyse()
}
}
ref_image.Blend( *image, ref_blend_perc );
DumpImage( image );
//DumpImage( image );
shared_images->last_read_index = index%image_buffer_count;
image_count++;

View File

@ -360,6 +360,8 @@ window.focus();
if ( $mode != "stream" )
{
// Prompt an image to be generated
$status = exec( escapeshellcmd( ZMU_PATH." -m $mid -i" ) );
header("Refresh: ".REFRESH_IMAGE."; URL='$PHP_SELF?view=watchfeed&mid=$mid&mode=still'" );
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified