Move "get max pid" code into platform specific area.

This commit is contained in:
Hisham Muhammad
2014-11-27 20:10:23 -02:00
parent 5578a316f0
commit b4f6b11092
5 changed files with 19 additions and 8 deletions

2
htop.c
View File

@ -680,7 +680,7 @@ int main(int argc, char** argv) {
ProcessList* pl = ProcessList_new(ut, pidWhiteList);
pl->userOnly = userOnly;
pl->userId = userId;
Process_getMaxPid();
Process_setupColumnWidths();
Header* header = Header_new(pl);
Settings* settings = Settings_new(pl, header, pl->cpuCount);