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:
parent
08aa598858
commit
c629ae8706
|
@ -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" );
|
||||||
|
|
Loading…
Reference in New Issue