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
f1f805f2
Commit
f1f805f2
authored
Feb 10, 2016
by
Hisham
Browse files
Support -1 as tpgid
parent
807640e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Process.c
View file @
f1f805f2
...
...
@@ -182,7 +182,7 @@ static int Process_getuid = -1;
#define ONE_DECIMAL_M (ONE_DECIMAL_K * ONE_DECIMAL_K)
#define ONE_DECIMAL_G (ONE_DECIMAL_M * ONE_DECIMAL_K)
char
Process_pidFormat
[
20
]
=
"%7
u
"
;
char
Process_pidFormat
[
20
]
=
"%7
d
"
;
static
char
Process_titleBuffer
[
20
][
20
];
...
...
@@ -196,7 +196,7 @@ void Process_setupColumnWidths() {
sprintf
(
Process_titleBuffer
[
i
],
"%*s "
,
digits
,
Process_pidColumns
[
i
].
label
);
Process_fields
[
Process_pidColumns
[
i
].
id
].
title
=
Process_titleBuffer
[
i
];
}
sprintf
(
Process_pidFormat
,
"%%%d
u
"
,
digits
);
sprintf
(
Process_pidFormat
,
"%%%d
d
"
,
digits
);
}
void
Process_humanNumber
(
RichString
*
str
,
unsigned
long
number
,
bool
coloring
)
{
...
...
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