Track process uptime
This commit is contained in:
@ -226,6 +226,8 @@ int32_t SYSCALL2(sys_proc_stat, pidx, pstat1) {
|
||||
LL_FOREACH_SAFE(p->vas, vas, vastmp) {
|
||||
stat->usemem += vas->size;
|
||||
}
|
||||
|
||||
hal_memcpy(&stat->time, &p->time, sizeof(p->time));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user