Skip to content

Commit b6079ae

Browse files
committed
refactor: improve readability
1 parent 7e67c91 commit b6079ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/slacc-system-metrics/src/macos.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub(crate) unsafe fn get_memory_info() -> Result<MemoryInformation, SlaccStatsEr
262262
command.as_mut_ptr(),
263263
command.len() as ::libc::c_uint,
264264
&raw mut page_size as *mut ::libc::c_void,
265-
&mut std::mem::size_of::<::libc::c_ulong>(),
265+
&mut std::mem::size_of::<u64>(),
266266
std::ptr::null_mut(),
267267
0,
268268
)
@@ -274,7 +274,7 @@ pub(crate) unsafe fn get_memory_info() -> Result<MemoryInformation, SlaccStatsEr
274274
command.as_mut_ptr(),
275275
command.len() as ::libc::c_uint,
276276
&raw mut memory_size as *mut ::libc::c_void,
277-
&mut std::mem::size_of::<::libc::c_ulong>(),
277+
&mut std::mem::size_of::<u64>(),
278278
std::ptr::null_mut(),
279279
0,
280280
)

0 commit comments

Comments
 (0)