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

git at icinga.org git at icinga.org
Mon Mar 14 16:09:54 CET 2011


Module: icinga-core
Branch: mfriedrich/core
Commit: 08d038841f7763d164e94281fd0765ee163a702e
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=08d038841f7763d164e94281fd0765ee163a702e

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 ca73b89..6abcc6d 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -802,6 +802,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;
@@ -814,6 +815,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;
@@ -826,6 +828,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        = "";
@@ -853,7 +856,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