top(1): fix err again
I am amazed at my ability to get a one-line error reporting line wrong thrice.
This commit is contained in:
parent
1fdbfb909f
commit
59c8d5dc27
@ -379,7 +379,7 @@ machine_init(struct statics *statics)
|
||||
GETSYSCTL("kern.smp.maxcpus", maxcpu);
|
||||
times = calloc(maxcpu * CPUSTATES, sizeof(long));
|
||||
if (times == NULL)
|
||||
err(1, "calloc for kern.smp.maxcpus", size);
|
||||
err(1, "calloc for kern.smp.maxcpus");
|
||||
size = sizeof(long) * maxcpu * CPUSTATES;
|
||||
if (sysctlbyname("kern.cp_times", times, &size, NULL, 0) == -1)
|
||||
err(1, "sysctlbyname kern.cp_times");
|
||||
|
Loading…
Reference in New Issue
Block a user