From d21be2b87c2269c12aa3c585d3ab0a21bb19d35e Mon Sep 17 00:00:00 2001 From: "Pawel \"l0ner\" Soltys" Date: Sun, 1 Feb 2015 17:29:04 +0100 Subject: [PATCH] openbsd: use unsigned ints to store cpu stats --- openbsd/cpu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );