summaryrefslogtreecommitdiff
path: root/runtime/ops/os/sys_info.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-09-09 17:03:17 +0530
committerGitHub <noreply@github.com>2024-09-09 17:03:17 +0530
commitea8bf0945ac93a16a3d8df2470c70d9cf1c36172 (patch)
tree8c7c4b38fec6308b17d0fb82e3fbebecc59ffb9d /runtime/ops/os/sys_info.rs
parent39f2704bd73971867301a7d424d9f2464916785d (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.rs2
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;
}
}
}