summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-03-18 10:25:27 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-03-18 10:25:27 +0000
commitc4e399a0dd3b4fffb402e75d0ef5812744ea64bd (patch)
tree58a47742599e4953b817297ca967b645a611240b /src
parentf870e8256cf1f2b8edaa2a5048c50b1f06f7bf54 (diff)
downloadzabbix-c4e399a0dd3b4fffb402e75d0ef5812744ea64bd.tar.gz
zabbix-c4e399a0dd3b4fffb402e75d0ef5812744ea64bd.tar.xz
zabbix-c4e399a0dd3b4fffb402e75d0ef5812744ea64bd.zip
- fixed memory[total] for HP-UX when >4GB of memory (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1710 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
-rw-r--r--src/zabbix_agent/sysinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c
index fe718480..94f86a95 100644
--- a/src/zabbix_agent/sysinfo.c
+++ b/src/zabbix_agent/sysinfo.c
@@ -1802,7 +1802,7 @@ int TOTALMEM(const char *cmd, const char *parameter,double *value)
/* Get page size */
page = pst.page_size;
/* Total physical memory in bytes */
- *value=page*pst.physical_memory;
+ *value=(double)page*pst.physical_memory;
return SYSINFO_RET_OK;
}
#else