From c629ae8706df55fa7db595accd0ede75513a6ff6 Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 12 Feb 2004 21:02:08 +0000 Subject: [PATCH] Fixed rapid refreshes while in Record mode. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@832 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_html_view_watchstatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/zm_html_view_watchstatus.php b/web/zm_html_view_watchstatus.php index d8b23ccdb..bafede2dd 100644 --- a/web/zm_html_view_watchstatus.php +++ b/web/zm_html_view_watchstatus.php @@ -56,7 +56,7 @@ $fps_string = sprintf( "%.2f", $fps ); $new_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":""); if ( ZM_WEB_REFRESH_METHOD == "http" ) header("Refresh: $refresh; URL=$url" );