mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Support pagefaults stats. Closes #45.
This commit is contained in:
@ -444,10 +444,14 @@ static bool ProcessList_readStatFile(Process *process, const char* dirname, cons
|
||||
location += 1;
|
||||
process->flags = strtoul(location, &location, 10);
|
||||
location += 1;
|
||||
location = strchr(location, ' ')+1;
|
||||
location = strchr(location, ' ')+1;
|
||||
location = strchr(location, ' ')+1;
|
||||
location = strchr(location, ' ')+1;
|
||||
process->minflt = strtoull(location, &location, 10);
|
||||
location += 1;
|
||||
process->cminflt = strtoull(location, &location, 10);
|
||||
location += 1;
|
||||
process->majflt = strtoull(location, &location, 10);
|
||||
location += 1;
|
||||
process->cmajflt = strtoull(location, &location, 10);
|
||||
location += 1;
|
||||
process->utime = strtoull(location, &location, 10);
|
||||
location += 1;
|
||||
process->stime = strtoull(location, &location, 10);
|
||||
|
Reference in New Issue
Block a user