mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Do not override Linux process library size
The library size in statm is unused and always 0 since Linux 2.6.
Fixes: 8154125d4b
This commit is contained in:
parent
45ab05c56a
commit
df752dd189
@ -625,12 +625,14 @@ static bool LinuxProcessList_readStatmFile(LinuxProcess* process, openat_arg_t p
|
||||
if (!statmfile)
|
||||
return false;
|
||||
|
||||
long int dummy;
|
||||
|
||||
int r = fscanf(statmfile, "%ld %ld %ld %ld %ld %ld %ld",
|
||||
&process->super.m_virt,
|
||||
&process->super.m_resident,
|
||||
&process->m_share,
|
||||
&process->m_trs,
|
||||
&process->m_lrs,
|
||||
&dummy, /* unused since Linux 2.6; always 0 */
|
||||
&process->m_drs,
|
||||
&process->m_dt);
|
||||
fclose(statmfile);
|
||||
|
Loading…
Reference in New Issue
Block a user