Skip to content

Commit b6afa5c

Browse files
authored
Merge pull request #71 from thewtex/freebsd-sig
Consistent get_cpu_count for FreeBSD
2 parents 0ca29c4 + 96ea7dc commit b6afa5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freebsd/cpu.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
#include "getsysctl.h"
2727
#include "cpu.h"
2828

29-
uint8_t get_cpu_count()
29+
uint32_t get_cpu_count()
3030
{
3131
int32_t cpu_count = 0;
3232
GETSYSCTL( "hw.ncpu", cpu_count );
3333

34-
return static_cast<uint8_t>( cpu_count );
34+
return static_cast<uint32_t>( cpu_count );
3535
}
3636

3737
float cpu_percentage( unsigned int cpu_usage_delay )

0 commit comments

Comments
 (0)