Merge #5580
5580: fix cast r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
c8573c418c
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ impl MemoryUsage {
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(target_os = "linux")] {
|
if #[cfg(target_os = "linux")] {
|
||||||
// Note: This is incredibly slow.
|
// Note: This is incredibly slow.
|
||||||
let alloc = unsafe { libc::mallinfo() }.uordblks as u32 as isize;
|
let alloc = unsafe { libc::mallinfo() }.uordblks as isize;
|
||||||
MemoryUsage { allocated: Bytes(alloc) }
|
MemoryUsage { allocated: Bytes(alloc) }
|
||||||
} else {
|
} else {
|
||||||
MemoryUsage { allocated: Bytes(0) }
|
MemoryUsage { allocated: Bytes(0) }
|
||||||
|
|
Loading…
Reference in a new issue