when having more than int kilobytes of memory or swapspace asmem display is corrupt. I've sent a patch upstream and asked whether the patched version is going to be released soon. The guy answered that he would expect it in a month or so, so it's up to you to decide whether you want to add the small patch or wait for a new release. Reproducible: Sometimes Steps to Reproduce: 1. Buy a lot of ram or add a big swap file/partition 2. Run asmem 3. Enjoy Actual Results: shows 92mb of swap with 967265mb free claiming it's 48% Expected Results: should've shown 4188mb of swap with 4065mb free which is approx 97% patch follows.
Created attachment 112125 [details, diff] asmem-1.10-longmem.patch
Upstream accepted a patch and released a new version.
Upstream changelog: 12 Apr 2007 1.12 albert@tigr.net Missed to change the function's type in 1.11 making it not fix anything really :) Now should be fine. Additionally, some small changes to get rid of the warnings and additional small changes to the behaviour of the reading function in case of errors. 08 Apr 2007 1.11 albert@tigr.net Patch from Michael Krelin <hacker@klever.net> patch which enables comfortable use of asmem when you have a plenty if memory (or swaps for that matter). Gentoo changelog: *asmem-1.12 (17 Jan 2008) 17 Jan 2008; Samuli Suominen <drac@gentoo.org> +asmem-1.12.ebuild: Version bump. Bug: Fixed.