Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
b8bfe60d
Commit
b8bfe60d
authored
Apr 10, 2018
by
Guy M. Broome
Committed by
Hisham Muhammad
Apr 10, 2018
Browse files
Solaris: fix build on htop 3.0 branch
parent
5c6d7cca
Changes
2
Hide whitespace changes
Inline
Side-by-side
solaris/Platform.h
View file @
b8bfe60d
...
...
@@ -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>
...
...
solaris/SolarisProcess.c
View file @
b8bfe60d
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment