mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Solaris: silence signed comparison
This commit is contained in:

committed by
cgzones

parent
8f34225a49
commit
906dcf5cb3
@ -59,7 +59,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
|
||||
pageSizeKB = pageSize / 1024;
|
||||
|
||||
pl->cpuCount = sysconf(_SC_NPROCESSORS_ONLN);
|
||||
if (pl->cpuCount == -1)
|
||||
if (pl->cpuCount == (unsigned int)-1)
|
||||
CRT_fatalError("Cannot get CPU count by sysconf(_SC_NPROCESSORS_ONLN)");
|
||||
else if (pl->cpuCount == 1)
|
||||
spl->cpus = xRealloc(spl->cpus, sizeof(CPUData));
|
||||
|
Reference in New Issue
Block a user