diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/zabbix_agent/sysinfo.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Changes for 1.1alpha8: + + - fixed memory[total] for HP-UX when >4GB of memory (Alexei) + Changes for 1.1alpha7: - fixed memory[free] for HP-UX when >4GB of memory (Alexei) 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 |