Adapt NetBSD code to signature change.

This commit is contained in:
Thomas Klausner 2023-01-19 14:59:30 +01:00
parent 5dccd1801f
commit 66dfb979b8

@ -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<uint8_t>( cpu_count );
return static_cast<uint32_t>( cpu_count );
}
float cpu_percentage( unsigned int cpu_usage_delay )