summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/zabbix_agent/sysinfo.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ed7008e2..f705c641 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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