diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-27 14:31:38 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-10-27 14:31:38 +0000 |
commit | aff91902c52d3532bcf8616261a7b4f209a8d6c7 (patch) | |
tree | cab96ced9c3d3654ca9fc1be070d397e4e864ac5 | |
parent | 9f7cc073c74b07103ff17e0451d12b754f5c3962 (diff) | |
download | zabbix-aff91902c52d3532bcf8616261a7b4f209a8d6c7.tar.gz zabbix-aff91902c52d3532bcf8616261a7b4f209a8d6c7.tar.xz zabbix-aff91902c52d3532bcf8616261a7b4f209a8d6c7.zip |
- fixed system.swap.in[] and system.swap.out[] under Linux 2.4 (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3393 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/libs/zbxsysinfo/linux/swap.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,7 @@ Changes for 1.3: Integrated from 1.1.x + - fixed system.swap.in[] and system.swap.out[] under Linux 2.4 (Alexei) - fixed processing of SNMP HEX and OCTET string values (Alexei) - added Dutch tranlation (Alexei) - fixed reversed icons on maps (Eugene) diff --git a/src/libs/zbxsysinfo/linux/swap.c b/src/libs/zbxsysinfo/linux/swap.c index a719fe73..304e603b 100644 --- a/src/libs/zbxsysinfo/linux/swap.c +++ b/src/libs/zbxsysinfo/linux/swap.c @@ -194,6 +194,8 @@ static int get_swap_io(zbx_uint64_t *swapin, zbx_uint64_t *swapout) if(swapin) *swapin = value1; if(swapout) *swapout = value2; + + fclose(f); return SYSINFO_RET_OK; }; |