openbsd: use unsigned ints to store cpu stats

This commit is contained in:
Pawel "l0ner" Soltys 2015-02-01 17:29:04 +01:00
parent a727edef8f
commit d21be2b87c

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