From ea8bf0945ac93a16a3d8df2470c70d9cf1c36172 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 9 Sep 2024 17:03:17 +0530 Subject: [PATCH] fix(ext/node): report freemem() on Linux in bytes (#25511) --- runtime/ops/os/sys_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/ops/os/sys_info.rs b/runtime/ops/os/sys_info.rs index e865bc8f90..cffc90e9da 100644 --- a/runtime/ops/os/sys_info.rs +++ b/runtime/ops/os/sys_info.rs @@ -238,7 +238,7 @@ pub fn mem_info() -> Option { if let Some(line) = line { let mem = line.split_whitespace().nth(1); let mem = mem.and_then(|v| v.parse::().ok()); - mem_info.available = mem.unwrap_or(0); + mem_info.available = mem.unwrap_or(0) * 1024; } } }