diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-25 13:36:21 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-04-25 13:36:21 +0000 |
| commit | def54445e0927328542a4d1162ccfed99f962b86 (patch) | |
| tree | 5e3070996266bc32f55f237f10febc57e7e141d4 /src/libs/zbxsysinfo/osf | |
| parent | 0b8329a1c06de8a4f426519daca06c9a7f9bc1bb (diff) | |
| download | zabbix-def54445e0927328542a4d1162ccfed99f962b86.tar.gz zabbix-def54445e0927328542a4d1162ccfed99f962b86.tar.xz zabbix-def54445e0927328542a4d1162ccfed99f962b86.zip | |
- added support of proc.mem[] for AIX (Eugene)
- added support of proc.num[] for AIX (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2780 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo/osf')
| -rw-r--r-- | src/libs/zbxsysinfo/osf/proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/zbxsysinfo/osf/proc.c b/src/libs/zbxsysinfo/osf/proc.c index b4c1715e..26fb3bd2 100644 --- a/src/libs/zbxsysinfo/osf/proc.c +++ b/src/libs/zbxsysinfo/osf/proc.c @@ -28,7 +28,7 @@ #define DO_AVG 3 int PROC_MEMORY(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result) -{ // usage: <function name>[ <process name>, <user name>, <mode>, <command> ] +{ /* usage: <function name>[ <process name>, <user name>, <mode>, <command> ] */ DIR *dir; int proc; @@ -157,7 +157,7 @@ int PROC_MEMORY(const char *cmd, const char *param, unsigned flags, AGENT_RE proccount++; - if(memsize < 0) // First inicialization + if(memsize < 0) /* First inicialization */ { memsize = (double) (psinfo.pr_rssize * pgsize); } @@ -171,7 +171,7 @@ int PROC_MEMORY(const char *cmd, const char *param, unsigned flags, AGENT_RE { memsize = MIN(memsize, (double) (psinfo.pr_rssize * pgsize)); } - else // SUM + else /* SUM */ { memsize += (double) (psinfo.pr_rssize * pgsize); } @@ -202,7 +202,7 @@ lbl_skip_procces: } int PROC_NUM(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result) -{ // usage: <function name>[ <process name>, <user name>, <process state>, <command> ] +{ /* usage: <function name>[ <process name>, <user name>, <process state>, <command> ] */ DIR *dir; int proc; |
