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:
Eitan Adler 2018-06-06 07:13:27 +00:00
parent 1fdbfb909f
commit 59c8d5dc27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334706

View File

@ -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");