aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-10-21 17:46:26 +0200
committerarf20 <aruizfernandez05@gmail.com>2025-10-21 17:46:26 +0200
commit6ed92d313341a1ff2b1dfc822f6a02eee0b3854a (patch)
treeb40b7bed9d6837d73f2322d76aef362bab0b7ac6 /main.c
parentebbe4a02815287d26968e96b282384e8b26cf3fb (diff)
downloadarfnet2-status-6ed92d313341a1ff2b1dfc822f6a02eee0b3854a.tar.gz
arfnet2-status-6ed92d313341a1ff2b1dfc822f6a02eee0b3854a.zip
wip: incidents and uptime
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 15379b3..05925fd 100644
--- a/main.c
+++ b/main.c
@@ -50,7 +50,9 @@ 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());
+ index_format_template,
+ monitor_generate_status_html(), "(since)", "(week %up)",
+ "(month %up)", "(total %up)", "(incidents)");
response = MHD_create_response_from_buffer(strlen(buff), (void*)buff,
MHD_RESPMEM_PERSISTENT);