5580: fix cast r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-07-30 08:14:58 +00:00 committed by GitHub
commit c8573c418c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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