mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-16 17:15:55 +01:00
WebAdmin: Fix calculation of node's uptime days
This commit is contained in:
parent
c021cf34be
commit
803f95050f
@ -2283,7 +2283,9 @@ web_page_node(_, Node, #request{path = [<<"stats">>]} = R) ->
|
|||||||
ejabberd_web_admin,
|
ejabberd_web_admin,
|
||||||
make_command,
|
make_command,
|
||||||
[stats, R, [{<<"name">>, <<"uptimeseconds">>}], [{only, value}]]),
|
[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 =
|
UpDays =
|
||||||
#xmlel{name = <<"code">>,
|
#xmlel{name = <<"code">>,
|
||||||
attrs = [],
|
attrs = [],
|
||||||
|
Loading…
Reference in New Issue
Block a user