]> granicus.if.org Git - procps-ng/commitdiff
library: use LINUX_VERSION macro in the MemAvailable fallback
authorJaromir Capik <jcapik@redhat.com>
Tue, 22 Jul 2014 16:18:51 +0000 (18:18 +0200)
committerJaromir Capik <jcapik@redhat.com>
Tue, 22 Jul 2014 16:18:51 +0000 (18:18 +0200)
proc/sysinfo.c

index f9cb68ddee498b3d36fab5e8f619451d83938500..7ffcb8706bd37d58e42adae02dc23393411136fa 100644 (file)
@@ -698,7 +698,7 @@ nextline:
 
   /* zero? might need fallback for 2.6.27 <= kernel <? 3.14 */
   if (!kb_main_available) {
-    if (linux_version_code < 20627)
+    if (linux_version_code < LINUX_VERSION(2, 6, 27))
       kb_main_available = kb_main_free;
     else {
       vminfo();