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
6b6b4373
Commit
6b6b4373
authored
Nov 20, 2006
by
Hisham Muhammad
Browse files
Changes suggested by Bo Liu
parent
2a025bf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Process.c
View file @
6b6b4373
...
@@ -148,8 +148,8 @@ Process* Process_clone(Process* this) {
...
@@ -148,8 +148,8 @@ Process* Process_clone(Process* this) {
void
Process_delete
(
Object
*
cast
)
{
void
Process_delete
(
Object
*
cast
)
{
Process
*
this
=
(
Process
*
)
cast
;
Process
*
this
=
(
Process
*
)
cast
;
if
(
this
->
comm
)
free
(
this
->
comm
);
assert
(
this
!=
NULL
);
assert
(
this
!=
NULL
);
if
(
this
->
comm
)
free
(
this
->
comm
);
free
(
this
);
free
(
this
);
}
}
...
@@ -186,7 +186,7 @@ void Process_sendSignal(Process* this, int signal) {
...
@@ -186,7 +186,7 @@ void Process_sendSignal(Process* this, int signal) {
#define ONE_M (ONE_K * ONE_K)
#define ONE_M (ONE_K * ONE_K)
#define ONE_G (ONE_M * ONE_K)
#define ONE_G (ONE_M * ONE_K)
static
void
Process_printLargeNumber
(
Process
*
this
,
RichString
*
str
,
unsigned
int
number
)
{
static
void
Process_printLargeNumber
(
Process
*
this
,
RichString
*
str
,
unsigned
long
number
)
{
char
buffer
[
11
];
char
buffer
[
11
];
int
len
;
int
len
;
if
(
number
>=
(
1000
*
ONE_M
))
{
if
(
number
>=
(
1000
*
ONE_M
))
{
...
...
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