fixed bug related to f_offset: parse hexadecimal
This commit is contained in:
parent
1606be8556
commit
e14b420b1f
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ int procstat_parse_maps(pid_t pid, procstat_map_t** maps, size_t* count)
|
|||
}
|
||||
}
|
||||
// f_offset
|
||||
map->f_offset = strtoull(offset, NULL, 10);
|
||||
map->f_offset = strtoull(offset, NULL, 16);
|
||||
// dev_major and dev_minor
|
||||
sscanf(device, "%d:%d", &map->dev_major, &map->dev_minor);
|
||||
// inode
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue