/[monit]/monit/process/sysdep_AIX.c
ViewVC logotype

Diff of /monit/process/sysdep_AIX.c

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

revision 1.1 by chopp, Fri Jun 6 09:31:17 2003 UTC revision 1.2 by chopp, Wed Aug 13 22:18:43 2003 UTC
# Line 20  Line 20 
20    
21  #include <config.h>  #include <config.h>
22    
23    #ifdef HAVE_STDIO_H
24    #include <stdio.h>
25    #endif
26    
27  #ifdef HAVE_SYS_TYPES_H  #ifdef HAVE_SYS_TYPES_H
28  #include <sys/types.h>  #include <sys/types.h>
29  #endif  #endif
30    
31    #ifdef HAVE_UNISTD_H
32  #include <unistd.h>  #include <unistd.h>
33    #endif
34    
35  #ifdef HAVE_SYS_STAT_H  #ifdef HAVE_SYS_STAT_H
36  #include <sys/stat.h>  #include <sys/stat.h>
# Line 48  Line 54 
54  #include <time.h>  #include <time.h>
55  #endif  #endif
56    
 #include <procinfo.h>  
 #include <sys/proc.h>  
   
57  #ifdef HAVE_STRING_H  #ifdef HAVE_STRING_H
58  #include <string.h>  #include <string.h>
59  #endif  #endif
60    
61  #include <stdio.h>  #ifdef HAVE_PROCINFO_H
62    #include <procinfo.h>
63    #endif
64    
65    #ifdef HAVE_SYS_PROC_H
66    #include <sys/proc.h>
67    #endif
68    
69    #ifdef HAVE_PROCFS_H
70  #include <procfs.h>  #include <procfs.h>
71    #endif
72    
73    
74  #include "process.h"  #include "process.h"
75  #include "sysdep.h"  #include "sysdep.h"
# Line 202  int getkmemdata(void *buf, int bufsize, Line 215  int getkmemdata(void *buf, int bufsize,
215   */   */
216  int getloadavg_sysdep (double *loadv, int nelem) {  int getloadavg_sysdep (double *loadv, int nelem) {
217    
218      /*
219    static int initted=0;    static int initted=0;
220    int avenrun[3];    int avenrun[3];
221    static int no_avenrun_here = 0;    static int no_avenrun_here = 0;
# Line 234  int getloadavg_sysdep (double *loadv, in Line 248  int getloadavg_sysdep (double *loadv, in
248      loadv[2] = avenrun[2] / 65536.0;      loadv[2] = avenrun[2] / 65536.0;
249        
250    return TRUE;    return TRUE;
251      */
252    
253      return getloadavg(loadv, nelem);
254    
255  }  }
256    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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