[icinga-checkins] icinga.org: icinga-core/r1.3: classic ui: fix refresh on non refreshable cgis

git at icinga.org git at icinga.org
Wed Mar 30 13:29:38 CEST 2011


Module: icinga-core
Branch: r1.3
Commit: 6618ad455a9222d5f47d036814b19a3098c87239
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=6618ad455a9222d5f47d036814b19a3098c87239

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon Mar 14 16:09:05 2011 +0100

classic ui: fix refresh on non refreshable cgis

---

 cgi/cgiutils.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c
index 6bf2c32..6d6daa6 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -882,6 +882,7 @@ void document_header(int cgi_id, int use_stylesheet){
                         cgi_css         = SHOWLOG_CSS;
                         cgi_title       = "Log File";
                         cgi_body_class  = "showlog";
+			refresh         = FALSE;
                         break;
                 case STATUSMAP_CGI_ID:
                         cgi_name        = STATUSMAP_CGI;
@@ -894,6 +895,7 @@ void document_header(int cgi_id, int use_stylesheet){
                         cgi_css         = SUMMARY_CSS;
                         cgi_title       = "Event Summary";
                         cgi_body_class  = "summary";
+			refresh         = FALSE;
                         break;
                 case TAC_CGI_ID:
                         cgi_name        = TAC_CGI;
@@ -906,6 +908,7 @@ void document_header(int cgi_id, int use_stylesheet){
                         cgi_css         = TRENDS_CSS;
                         cgi_title       = "Trends";
                         cgi_body_class  = "trends";
+			refresh         = FALSE;
                         break;
                 case ERROR_CGI_ID:
                         cgi_name        = "";
@@ -933,7 +936,7 @@ void document_header(int cgi_id, int use_stylesheet){
 		printf("Cache-Control: no-store\r\n");
 		printf("Pragma: no-cache\r\n");
 
-		if(refresh)
+		if(refresh==TRUE)
 			printf("Refresh: %d\r\n",refresh_rate);
 
 		get_time_string(&current_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME);





More information about the icinga-checkins mailing list