Solaris: fix build on htop 3.0 branch

This commit is contained in:
Guy M. Broome 2018-04-10 10:21:29 -03:00 committed by Hisham Muhammad
parent 5c6d7cca3e
commit b8bfe60d2b
2 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@ in the source distribution for its full text.
#include "Action.h"
#include "BatteryMeter.h"
#include "SignalsPanel.h"
#include "SolarisProcess.h"
#include <signal.h>
#include <sys/mkdev.h>
#include <sys/proc.h>

View File

@ -170,14 +170,14 @@ void SolarisProcess_writeField(Process* this, RichString* str, ProcessField fiel
long SolarisProcess_compare(const void* v1, const void* v2) {
SolarisProcess *p1, *p2;
Settings* settings = ((Process*)v1)->settings;
if (settings->direction == 1) {
if (settings->ss->direction == 1) {
p1 = (SolarisProcess*)v1;
p2 = (SolarisProcess*)v2;
} else {
p2 = (SolarisProcess*)v1;
p1 = (SolarisProcess*)v2;
}
switch ((int) settings->sortKey) {
switch ((int) settings->ss->sortKey) {
case ZONEID:
return (p1->zoneid - p2->zoneid);
case PROJID: