summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/zabbix_agent/sysinfo.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ec1da353..ed7008e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
Changes for 1.1alpha7:
+ - fixed memory[free] for HP-UX when >4GB of memory (Alexei)
- hard-linked templates works when deleting an action (Alexei)
- hard-linked templates works when adding an action (Alexei)
- added frontends/php/include/hosts.inc.php (Alexei)
diff --git a/src/zabbix_agent/sysinfo.c b/src/zabbix_agent/sysinfo.c
index ccbe45b9..fe718480 100644
--- a/src/zabbix_agent/sysinfo.c
+++ b/src/zabbix_agent/sysinfo.c
@@ -1883,7 +1883,7 @@ int FREEMEM(const char *cmd, const char *parameter,double *value)
*/
/* Free memory in bytes */
- *value=dyn.psd_free * page;
+ *value=(double)dyn.psd_free * page;
return SYSINFO_RET_OK;
}
}