Skip to content

Commit 17a404c

Browse files
committed
Don't take time from /proc/schedstat for processes.
I assume this is a copy-paste error. We shouldn't take the rt and wt values here from /proc/schedstat, as they're resulting in entirely incorrect values. Instead, the loop code fills them properly with the per-process value already, and they can be left blank here intentionally. This was the case before in the pre-systemd code tree.
1 parent 279089f commit 17a404c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/store.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ int log_sample(DIR *proc,
249249

250250
/* mark our first sample */
251251
ps->first = ps->last = ps->sample;
252-
ps->sample->runtime = atoll(rt);
253-
ps->sample->waittime = atoll(wt);
254252

255253
/* get name, start time; requires CONFIG_SCHED_DEBUG in kernel */
256254
if (ps->sched < 0) {

0 commit comments

Comments
 (0)