mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Changes suggested by Bo Liu
This commit is contained in:
parent
2a025bf4c6
commit
6b6b4373b5
@ -148,8 +148,8 @@ Process* Process_clone(Process* this) {
|
||||
|
||||
void Process_delete(Object* cast) {
|
||||
Process* this = (Process*) cast;
|
||||
if (this->comm) free(this->comm);
|
||||
assert (this != NULL);
|
||||
if (this->comm) free(this->comm);
|
||||
free(this);
|
||||
}
|
||||
|
||||
@ -186,7 +186,7 @@ void Process_sendSignal(Process* this, int signal) {
|
||||
#define ONE_M (ONE_K * 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];
|
||||
int len;
|
||||
if(number >= (1000 * ONE_M)) {
|
||||
|
Loading…
Reference in New Issue
Block a user