$NetBSD: patch-cgi_histogram.c,v 1.4 2016/02/09 10:12:53 bouyer Exp $
64bit time_t workaround
--- cgi/histogram.c.orig 2016-02-07 22:21:30.000000000 +0100
+++ cgi/histogram.c 2016-02-07 22:22:24.000000000 +0100
@@ -338,9 +338,9 @@
if(display_type == DISPLAY_HOST_HISTOGRAM) {
#ifdef USE_TRENDS
- printf("View Trends For This Host
\n", TRENDS_CGI, url_encode(host_name), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no");
+ printf("View Trends For This Host
\n", TRENDS_CGI, url_encode(host_name), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no");
#endif
- printf("View Availability Report For This Host
\n", AVAIL_CGI, url_encode(host_name), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no");
+ printf("View Availability Report For This Host
\n", AVAIL_CGI, url_encode(host_name), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no");
printf("View Status Detail For This Host
\n", STATUS_CGI, url_encode(host_name));
printf("View History For This Host
\n", HISTORY_CGI, url_encode(host_name));
printf("View Notifications For This Host
\n", NOTIFICATIONS_CGI, url_encode(host_name));
@@ -349,9 +349,9 @@
#ifdef USE_TRENDS
printf("View Trends For This Service
\n", url_encode(svc_description), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no");
+ printf("&service=%s&t1=%lu&t2=%lu&assumestateretention=%s'>View Trends For This Service
\n", url_encode(svc_description), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no");
printf("View Availability Report For This Service
\n", url_encode(svc_description), t1, t2, (assume_state_retention == TRUE) ? "yes" : "no");
+ printf("&service=%s&t1=%lu&t2=%lu&assumestateretention=%s&show_log_entries'>View Availability Report For This Service
\n", url_encode(svc_description), (unsigned long)t1, (unsigned long)t2, (assume_state_retention == TRUE) ? "yes" : "no");
printf("View History For This Service
\n", url_encode(svc_description));
printf("