Doug Torrance
52b638616c
wmmemload: Read memory correctly with Linux kernel version >= 3.14.
...
Beginning with Linux kernel version 3.14, a new MemAvailable line appears
in /proc/meminfo[1]. This caused wmmemload to look for Cached and Buffers one
line off of their correct location. The problem was reported in [2].
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749216
2014-10-10 10:09:53 +01:00
Doug Torrance
ea2cf286ef
wmmemload: Consistent formatting.
...
Format the source so as to minimize warnings from checkpatch.pl in the
Window Maker source tree.
2014-10-10 10:09:53 +01:00
Doug Torrance
917d454f0d
wmmemload: Add suggested parentheses.
...
Avoid the following compiler warning:
mem_linux.c: In function ‘mem_init’:
mem_linux.c:52:40: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \
^
2014-10-10 10:09:53 +01:00
Doug Torrance
32ce80ea45
wmmemload: Fix version check for kernel 3.0.
...
Based on the patch from Debian by Guillermo Indalecio Fernandez
<guillermobox@gmail.com>:
http://sources.debian.net/src/wmmemload/0.1.6-8/debian/patches/04-kernel30.patch/
2014-10-04 08:13:16 +01:00
Doug Torrance
a15c2e2029
wmmemload: Add version 0.1.6 to repository.
...
Obtained from:
http://ftp.de.debian.org/debian/pool/main/w/wmmemload/wmmemload_0.1.6.orig.tar.gz
2014-10-04 08:13:15 +01:00