From 6acd5a85f7ec11fe59b16d5e7fd621abf5ca49c6 Mon Sep 17 00:00:00 2001 From: arf20 Date: Wed, 22 Oct 2025 01:20:53 +0200 Subject: load events --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 05925fd..fdfc5cd 100644 --- a/main.c +++ b/main.c @@ -51,8 +51,7 @@ enum MHD_Result answer_to_connection( if (strcmp(method, "GET") == 0 && strcmp(url, "/") == 0) { snprintf(buff, RES_BUFF, index_format_template, - monitor_generate_status_html(), "(since)", "(week %up)", - "(month %up)", "(total %up)", "(incidents)"); + monitor_generate_status_html(), "(incidents)"); response = MHD_create_response_from_buffer(strlen(buff), (void*)buff, MHD_RESPMEM_PERSISTENT); @@ -98,7 +97,7 @@ int main() { return 1; } - monitor_init("monitor.cfg"); + monitor_init("monitor.cfg", "events.log"); while (1) { monitor_check(); -- cgit v1.2.3