1
0
Fork 0
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:
Divy Srivastava 2024-09-09 17:03:17 +05:30 committed by GitHub
parent 39f2704bd7
commit ea8bf0945a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
}
}