From 111c2c84e4b2b40b18b6fc8146aa5926d160b4b3 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 3 Jan 2003 15:07:55 +0000 Subject: [PATCH] Now only dumps images when required. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@232 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm.cpp | 2 +- web/zmhtml.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zm.cpp b/src/zm.cpp index 33cc4c5ac..74de06420 100644 --- a/src/zm.cpp +++ b/src/zm.cpp @@ -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++; diff --git a/web/zmhtml.php b/web/zmhtml.php index 6e57eb606..c44dc46e3 100644 --- a/web/zmhtml.php +++ b/web/zmhtml.php @@ -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