Changes of Revision 4
[-] [+] | Added | monit-page_shift.patch |
@@ -0,0 +1,20 @@ +Author: Andreas Schwab <schwab at SuSE dot de> + +--- monit-4.5.1/process/sysdep_LINUX.c ++++ monit-4.5.1/process/sysdep_LINUX.c 2005-04-14 12:53:26 +@@ -247,14 +247,7 @@ + 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; + } + + *reference = pt; |