diff --git a/openbsd/cpu.cc b/openbsd/cpu.cc index 43cd704..9af4eb5 100644 --- a/openbsd/cpu.cc +++ b/openbsd/cpu.cc @@ -42,8 +42,8 @@ float cpu_percentage( unsigned int cpu_usage_delay ) { int cpu_ctl[] = { CTL_KERN, KERN_CPTIME }; - int32_t load1[CPUSTATES]; - int32_t load2[CPUSTATES]; + u_int32_t load1[CPUSTATES]; + u_int32_t load2[CPUSTATES]; size_t size = sizeof( load1 );