File monit-page_shift.patch of Package monit

--- src/process/sysdep_LINUX.c.orig	2011-10-26 00:13:56.558000464 +0200
+++ src/process/sysdep_LINUX.c	2011-10-26 00:14:22.753000463 +0200
@@ -269,10 +269,7 @@
     if (stat_item_state == 'Z')
       pt[i].status_flag |= PROCESS_ZOMBIE;
 
-    if (page_shift_to_kb < 0)
-      pt[i].mem_kbyte = (stat_item_rss >> abs(page_shift_to_kb));
-    else
-      pt[i].mem_kbyte = (stat_item_rss << abs(page_shift_to_kb));
+    pt[i].mem_kbyte = stat_item_rss * getpagesize() / 1024;
 
     if (! read_proc_file(buf, sizeof(buf), "cmdline", pt[i].pid, &bytes)) {
       DEBUG("system statistic error -- cannot read /proc/%d/cmdline\n", pt[i].pid);