mirror of https://github.com/xzeldon/htop.git
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)
|
if (!statmfile)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
long int dummy;
|
||||||
|
|
||||||
int r = fscanf(statmfile, "%ld %ld %ld %ld %ld %ld %ld",
|
int r = fscanf(statmfile, "%ld %ld %ld %ld %ld %ld %ld",
|
||||||
&process->super.m_virt,
|
&process->super.m_virt,
|
||||||
&process->super.m_resident,
|
&process->super.m_resident,
|
||||||
&process->m_share,
|
&process->m_share,
|
||||||
&process->m_trs,
|
&process->m_trs,
|
||||||
&process->m_lrs,
|
&dummy, /* unused since Linux 2.6; always 0 */
|
||||||
&process->m_drs,
|
&process->m_drs,
|
||||||
&process->m_dt);
|
&process->m_dt);
|
||||||
fclose(statmfile);
|
fclose(statmfile);
|
||||||
|
|
Loading…
Reference in New Issue