Fixed leak. Don't set .timeout anymore.
* netload.c: (glibtop_get_netload_s): Fixed leak. * proctime.c: (glibtop_get_proc_time_s): Don't set .timeout anymore.
This commit is contained in:
@@ -70,9 +70,11 @@ glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid)
|
||||
buf->cutime = strtoull (p, &p, 0);
|
||||
buf->cstime = strtoull (p, &p, 0);
|
||||
|
||||
p = skip_multiple_token (p, 2);
|
||||
p = skip_multiple_token (p, 3);
|
||||
|
||||
buf->timeout = strtoull (p, &p, 0);
|
||||
// timeout is 0 on 2.4 and "thread_number" on 2.6
|
||||
// lets skip it (using previous skip_multiple_token)
|
||||
// buf->timeout = strtoull (p, &p, 0);
|
||||
buf->it_real_value = strtoull (p, &p, 0);
|
||||
buf->start_time = strtoull (p, &p, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user