summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-08 23:51:59 +0300
committerrinpatch <rinpatch@sdf.org>2020-05-10 02:11:33 +0300
commit3d9a7cf0cc235f4c305c065e264a77d3c9e7d0e3 (patch)
tree489db148d97244f0a5d016748af106190411872f
parentf7c28ae54484e1c5df48c89560e7822d04c7e5eb (diff)
healthcheck: report real amount of memory allocated by beam
as opposed to memory currently in use
-rw-r--r--lib/pleroma/healthcheck.ex2
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()