healthcheck: report real amount of memory allocated by beam

as opposed to memory currently in use
This commit is contained in:
rinpatch 2020-05-08 23:51:59 +03:00
parent f7c28ae544
commit 3d9a7cf0cc
1 changed files with 1 additions and 1 deletions

View File

@ -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()