Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
monit
> monit-page_shift.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File monit-page_shift.patch of Package monit (Revision 17)
Currently displaying revision
17
,
show latest
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;