[icinga-checkins] icinga.org: icinga-core/rbartels/cgi-current: Prevent wraps in the tac_header monitor service table

git at icinga.org git at icinga.org
Fri Apr 29 00:04:44 CEST 2011


Module: icinga-core
Branch: rbartels/cgi-current
Commit: b22fdf5837702f364955cdb5bdd15886c034d78d
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=b22fdf5837702f364955cdb5bdd15886c034d78d

Author: Matthew J. Brooks <matthew at sonomatechpartners.com>
Date:   Wed Apr 27 14:04:19 2011 -0700

Prevent wraps in the tac_header monitor service table

When the lines wrap in the monitor service table, the magic of
using a backround image for the cell gets revealed.

This change includes the following:
 - sets nowrap on some of the table dividers
 - changes "sec" to "s" to reduce the cell line width

refs #1406

---

 cgi/tac.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/cgi/tac.c b/cgi/tac.c
index 63e0901..6b1bff8 100644
--- a/cgi/tac.c
+++ b/cgi/tac.c
@@ -997,26 +997,26 @@ void display_tac_overview(void){
 		printf("</tr>\n");
 		printf("<tr>\n");
 		printf("<td><img src='%s%s' width='16' height='16' alt='Host Execution Time (min/avg/max)' /></td>\n",url_images_path,TAC_HEADER_EXECUTION_ICON);
-		printf("<td>\n");
+		printf("<td nowrap='nowrap'>\n");
 		printf("<div class='tacheader-monitor'>");
-		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f sec</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_host_execution_time,max_host_execution_time,average_host_execution_time);
+		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f s</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_host_execution_time,max_host_execution_time,average_host_execution_time);
 		printf("</td>\n");
 		printf("<td><img src='%s%s' width='16' height='16' alt='Service Execution Time (min/avg/max)' /></td>\n",url_images_path,TAC_HEADER_EXECUTION_ICON);
-		printf("<td>\n");
+		printf("<td nowrap='nowrap'>\n");
 		printf("<div class='tacheader-monitor'>");
-		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f sec</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_service_execution_time,max_service_execution_time,average_service_execution_time);
+		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f s</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_service_execution_time,max_service_execution_time,average_service_execution_time);
 		printf("</td>\n");
 		printf("</tr>\n");
 		printf("<tr>\n");
 		printf("<td><img src='%s%s' width='16' height='16' alt='Host Latency (min/avg/max)' /></td>\n",url_images_path,TAC_HEADER_LATENCY_ICON);
-		printf("<td>\n");
+		printf("<td nowrap='nowrap'>\n");
 		printf("<div class='tacheader-monitor'>");
-		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f sec</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_host_latency,max_host_latency,average_host_latency);
+		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f s</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_host_latency,max_host_latency,average_host_latency);
 		printf("</td>\n");
 		printf("<td><img src='%s%s' width='16' height='16' alt='Service Latency (min/avg/max)' /></td>\n",url_images_path,TAC_HEADER_LATENCY_ICON);
-		printf("<td>\n");
+		printf("<td nowrap='nowrap'>\n");
 		printf("<div class='tacheader-monitor'>");
-		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f sec</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_service_latency,max_service_latency,average_service_latency);
+		printf("<a target='main' href='%s?type=%d'>%.2f / %.2f / %.3f s</a></div>\n",EXTINFO_CGI,DISPLAY_PERFORMANCE,min_service_latency,max_service_latency,average_service_latency);
 		printf("</td>\n");
 		printf("</tr>\n");
 		printf("</table></td>\n");





More information about the icinga-checkins mailing list