aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-10-22 01:20:53 +0200
committerarf20 <aruizfernandez05@gmail.com>2025-10-22 01:20:53 +0200
commit6acd5a85f7ec11fe59b16d5e7fd621abf5ca49c6 (patch)
tree4f48651b7c5e3025f5d84e32d84a36fd77511705 /main.c
parent6ed92d313341a1ff2b1dfc822f6a02eee0b3854a (diff)
downloadarfnet2-status-6acd5a85f7ec11fe59b16d5e7fd621abf5ca49c6.tar.gz
arfnet2-status-6acd5a85f7ec11fe59b16d5e7fd621abf5ca49c6.zip
load events
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
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();