diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-08 23:51:59 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-08 23:57:47 +0300 |
commit | 30eaef9d615428b23dbc569b6e6c745185bb00b8 (patch) | |
tree | a019b365a0d69be5433d7f3b4662b26306320636 /lib | |
parent | df82ee417916b4c1572c4c3403566cf19ff68ee4 (diff) | |
download | pleroma-30eaef9d615428b23dbc569b6e6c745185bb00b8.tar.gz pleroma-30eaef9d615428b23dbc569b6e6c745185bb00b8.zip |
healthcheck: report real amount of memory allocated by beam
as opposed to memory currently in use
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/healthcheck.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/healthcheck.ex b/lib/pleroma/healthcheck.ex index 8f7f43ec2..92ce83cb7 100644 --- a/lib/pleroma/healthcheck.ex +++ b/lib/pleroma/healthcheck.ex @@ -29,7 +29,7 @@ defmodule Pleroma.Healthcheck do @spec system_info() :: t() def system_info do %Healthcheck{ - memory_used: Float.round(:erlang.memory(:total) / 1024 / 1024, 2) + memory_used: Float.round(:recon_alloc.memory(:allocated) / 1024 / 1024, 2) } |> assign_db_info() |> assign_job_queue_stats() |