diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c index 599fc5421..f7f2af3d7 100644 --- a/libobs/obs-nix.c +++ b/libobs/obs-nix.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "util/dstr.h" #include "obs-internal.h" @@ -128,8 +129,8 @@ static void log_memory_info(void) if (sysinfo(&info) < 0) return; - blog(LOG_INFO, "Physical Memory: %luMB Total", - info.totalram / 1024 / 1024); + blog(LOG_INFO, "Physical Memory: %"PRIu64"MB Total", + (uint64_t)info.totalram * info.mem_unit / 1024 / 1024); } static void log_kernel_version(void)