Fix bug reported by Takis Psarogiannakopoulos: `start_time' are seconds
1999-07-29 Martin Baulig <martin@home-of-linux.org> * proctime.c (glibtop_get_proc_time_p): Fix bug reported by Takis Psarogiannakopoulos: `start_time' are seconds since the epoch as it is stated in the manual.
This commit is contained in:
committed by
Martin Baulig
parent
60a6d0876e
commit
9bd351abae
@@ -55,8 +55,7 @@ glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf,
|
||||
if (glibtop_get_proc_data_usage_s (server, &prusage, pid))
|
||||
return;
|
||||
|
||||
buf->start_time = prusage.pr_create.tv_sec * 1E+6 +
|
||||
prusage.pr_create.tv_nsec / 1E+3;
|
||||
buf->start_time = prusage.pr_create.tv_sec;
|
||||
|
||||
buf->rtime = prusage.pr_rtime.tv_sec * 1E+6 +
|
||||
prusage.pr_rtime.tv_nsec / 1E+3;
|
||||
|
||||
Reference in New Issue
Block a user