=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.93 retrieving revision 1.94 diff -u -r1.93 -r1.94 --- src/usr.bin/top/top.c 2018/09/26 17:23:13 1.93 +++ src/usr.bin/top/top.c 2018/10/05 18:56:57 1.94 @@ -1,4 +1,4 @@ -/* $OpenBSD: top.c,v 1.93 2018/09/26 17:23:13 cheloha Exp $ */ +/* $OpenBSD: top.c,v 1.94 2018/10/05 18:56:57 cheloha Exp $ */ /* * Top users/processes display for Unix @@ -251,7 +251,7 @@ } } - i = getncpuonline(); + i = getncpu(); if (i == -1) err(1, NULL); @@ -467,7 +467,7 @@ ps.threads); /* display the cpu state percentage breakdown */ - i_cpustates(system_info.cpustates, system_info.cpuonline); + i_cpustates(system_info.cpustates); /* display memory stats */ i_memory(system_info.memory);