Isolate portable and Linux-specific process fields.

This commit is contained in:
Hisham Muhammad
2015-03-16 01:43:04 -03:00
parent bc928d7f47
commit be1700cf94
10 changed files with 602 additions and 454 deletions

View File

@ -135,7 +135,7 @@ ColumnsPanel* ColumnsPanel_new(Settings* settings) {
}
int ColumnsPanel_fieldNameToIndex(const char* name) {
for (int j = 1; j <= LAST_PROCESSFIELD; j++) {
for (int j = 1; j <= Platform_numberOfFields; j++) {
if (String_eq(name, Process_fields[j].name)) {
return j;
}