mirror of
https://github.com/thewtex/tmux-mem-cpu-load.git
synced 2026-09-10 07:16:16 -04:00
openbsd: use unsigned ints to store cpu stats
This commit is contained in:
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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue