diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-09-09 17:03:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 17:03:17 +0530 |
commit | ea8bf0945ac93a16a3d8df2470c70d9cf1c36172 (patch) | |
tree | 8c7c4b38fec6308b17d0fb82e3fbebecc59ffb9d /runtime/ops/os/sys_info.rs | |
parent | 39f2704bd73971867301a7d424d9f2464916785d (diff) |
fix(ext/node): report freemem() on Linux in bytes (#25511)
Diffstat (limited to 'runtime/ops/os/sys_info.rs')
-rw-r--r-- | runtime/ops/os/sys_info.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/os/sys_info.rs b/runtime/ops/os/sys_info.rs index e865bc8f9..cffc90e9d 100644 --- a/runtime/ops/os/sys_info.rs +++ b/runtime/ops/os/sys_info.rs @@ -238,7 +238,7 @@ pub fn mem_info() -> Option<MemInfo> { if let Some(line) = line { let mem = line.split_whitespace().nth(1); let mem = mem.and_then(|v| v.parse::<u64>().ok()); - mem_info.available = mem.unwrap_or(0); + mem_info.available = mem.unwrap_or(0) * 1024; } } } |