mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
fix(ext/node): report freemem() on Linux in bytes (#25511)
This commit is contained in:
parent
39f2704bd7
commit
ea8bf0945a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue