diff --git a/wmmemload/src/mem_linux.c b/wmmemload/src/mem_linux.c index a17b1f4..eee1b90 100644 --- a/wmmemload/src/mem_linux.c +++ b/wmmemload/src/mem_linux.c @@ -49,8 +49,9 @@ void mem_init(void) /* new format ? (kernel >= 2.5.1pre?) */ /* see linux/fs/proc/proc_misc.c */ - if (version >= 2 && patchlevel >= 5 && sublevel >= 1 || \ - version >= 2 && patchlevel >= 6 && sublevel >= 0) + if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \ + version == 2 && patchlevel >= 6 && sublevel >= 0 || \ + version >2 ) isnewformat = 1; }