From 803f95050ff12e5defad61a5e968407729a66547 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 3 Dec 2024 02:42:04 +0100 Subject: [PATCH] WebAdmin: Fix calculation of node's uptime days --- src/mod_admin_extra.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 2612e7a71..4e644586d 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -2283,7 +2283,9 @@ web_page_node(_, Node, #request{path = [<<"stats">>]} = R) -> ejabberd_web_admin, make_command, [stats, R, [{<<"name">>, <<"uptimeseconds">>}], [{only, value}]]), - UpDaysBin = integer_to_binary(binary_to_integer(fxml:get_tag_cdata(UpSecs)) div 24000), + UpDaysBin = integer_to_binary( + binary_to_integer(fxml:get_tag_cdata(UpSecs)) + div 86400), % 24*60*60 UpDays = #xmlel{name = <<"code">>, attrs = [],