Fixed rapid refreshes while in Record mode.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@832 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-02-12 21:02:08 +00:00
parent 08aa598858
commit c629ae8706
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ $fps_string = sprintf( "%.2f", $fps );
$new_alarm = ( $status > 0 && $last_status == 0 ); $new_alarm = ( $status > 0 && $last_status == 0 );
$old_alarm = ( $status == 0 && $last_status > 0 ); $old_alarm = ( $status == 0 && $last_status > 0 );
$refresh = (isset($force)||$forced||$status)?1:REFRESH_STATUS; $refresh = (isset($force)||$forced||($status==1)||($status==2))?1:REFRESH_STATUS;
$url = "$PHP_SELF?view=watchstatus&mid=$mid&last_status=$status".(($force||$forced)?"&forced=1":""); $url = "$PHP_SELF?view=watchstatus&mid=$mid&last_status=$status".(($force||$forced)?"&forced=1":"");
if ( ZM_WEB_REFRESH_METHOD == "http" ) if ( ZM_WEB_REFRESH_METHOD == "http" )
header("Refresh: $refresh; URL=$url" ); header("Refresh: $refresh; URL=$url" );