|
@@ -242,7 +242,7 @@ static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp)
|
|
pid_set_comm(tchart, pid, pp->current->comm);
|
|
pid_set_comm(tchart, pid, pp->current->comm);
|
|
|
|
|
|
p->start_time = timestamp;
|
|
p->start_time = timestamp;
|
|
- if (p->current) {
|
|
|
|
|
|
+ if (p->current && !p->current->start_time) {
|
|
p->current->start_time = timestamp;
|
|
p->current->start_time = timestamp;
|
|
p->current->state_since = timestamp;
|
|
p->current->state_since = timestamp;
|
|
}
|
|
}
|