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:
parent
d1e08d888f
commit
111c2c84e4
|
@ -1785,7 +1785,7 @@ bool Monitor::Analyse()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ref_image.Blend( *image, ref_blend_perc );
|
ref_image.Blend( *image, ref_blend_perc );
|
||||||
DumpImage( image );
|
//DumpImage( image );
|
||||||
|
|
||||||
shared_images->last_read_index = index%image_buffer_count;
|
shared_images->last_read_index = index%image_buffer_count;
|
||||||
image_count++;
|
image_count++;
|
||||||
|
|
|
@ -360,6 +360,8 @@ window.focus();
|
||||||
|
|
||||||
if ( $mode != "stream" )
|
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("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("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
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
|
||||||
|
|
Loading…
Reference in New Issue