Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meminfo looking at wrong line #16

Open
avongluck-r1soft opened this issue May 20, 2015 · 4 comments
Open

meminfo looking at wrong line #16

avongluck-r1soft opened this issue May 20, 2015 · 4 comments

Comments

@avongluck-r1soft
Copy link

It looks like meminfo is examining line 5 for "Active:", but the offset for active has moved to line 6.

$ cat /proc/meminfo
MemTotal:       32915844 kB
MemFree:        12771756 kB
MemAvailable:   25949644 kB
Buffers:          308388 kB
Cached:         12658552 kB
SwapCached:            0 kB
Active:          6645692 kB
Inactive:        8302520 kB
Active(anon):    1982684 kB
Inactive(anon):    85144 kB

Likely should be going off of the field names vs fixed line offsets.

@geocom
Copy link

geocom commented May 20, 2015

Take a look at my pull request #13. You can build it from my fork to have this happen

@shlima
Copy link

shlima commented Aug 12, 2015

+1

@evnix
Copy link

evnix commented Apr 16, 2016

Please apply the suggested patch #13

@yuri-karpovich
Copy link

+1 for #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants