Skip to content

Commit

Permalink
Force value type to be c_int
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 18, 2023
1 parent 5d729b4 commit dd4d12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/freebsd/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub(crate) fn physical_core_count() -> Option<usize> {
}

unsafe fn get_frequency_for_cpu(cpu_nb: usize) -> u64 {
let mut frequency = 0;
let mut frequency: c_int = 0;

// The information can be missing if it's running inside a VM.
if !get_sys_value_by_name(
Expand Down

0 comments on commit dd4d12d

Please sign in to comment.