/[monit]/monit/monit_process.c
ViewVC logotype

Diff of /monit/monit_process.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by hauk, Sun Aug 31 20:05:51 2003 UTC revision 1.19 by martinp, Tue Sep 9 19:36:40 2003 UTC
# Line 80  char statusnames[][STRLEN]=   {"not moni Line 80  char statusnames[][STRLEN]=   {"not moni
80  char servicenames[][STRLEN]=  {"Device Name", "Directory Name", "File Name",  char servicenames[][STRLEN]=  {"Device Name", "Directory Name", "File Name",
81                                 "Process Name", "Remote Host" };                                 "Process Name", "Remote Host" };
82    
83  int  include_children= TRUE;  int   include_children= TRUE;
84  int  num_cpus=1;  int   num_cpus=1;
85  int  mem_kbyte_max=0;  long  mem_kbyte_max=0;
86    
87    
88  /**  /**
# Line 130  int update_process_data(Service_T s, Pro Line 130  int update_process_data(Service_T s, Pro
130    
131      } else {      } else {
132    
133        pi->total_mem_percent=(int) ((double) leaf->mem_kbyte_sum * 1000.0 / mem_kbyte_max);        pi->total_mem_percent=(int) ((double) leaf->mem_kbyte_sum * 1000 / mem_kbyte_max);
134    
135      }      }
136    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26