From 66dfb979b8c3be4f4d6a21d1270a576f84143c47 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 19 Jan 2023 14:59:30 +0100 Subject: [PATCH] Adapt NetBSD code to signature change. --- netbsd/cpu.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbsd/cpu.cc b/netbsd/cpu.cc index cbee70e..756591d 100644 --- a/netbsd/cpu.cc +++ b/netbsd/cpu.cc @@ -26,12 +26,12 @@ #include "getsysctl.h" #include "cpu.h" -uint8_t get_cpu_count() +uint32_t get_cpu_count() { int cpu_count = 0; GETSYSCTL( "hw.ncpu", cpu_count ); - return static_cast( cpu_count ); + return static_cast( cpu_count ); } float cpu_percentage( unsigned int cpu_usage_delay )