Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/zbxsysinfo/linux/inodes.c')
-rw-r--r--src/libs/zbxsysinfo/linux/inodes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/zbxsysinfo/linux/inodes.c b/src/libs/zbxsysinfo/linux/inodes.c
index 0ea0c231ed9..c29da19eae1 100644
--- a/src/libs/zbxsysinfo/linux/inodes.c
+++ b/src/libs/zbxsysinfo/linux/inodes.c
@@ -77,9 +77,10 @@ while(0)
}
else if (NULL != mode && (0 == strcmp(mode, "pfree") || 0 == strcmp(mode, "pused")))
{
- *error = zbx_strdup(NULL, "Cannot calculate percentage because total is zero.");
- return SYSINFO_RET_FAIL;
+ *pfree = 100.0;
+ *pused = 0.0;
}
+
return SYSINFO_RET_OK;
#undef ZBX_STATFS
#undef ZBX_FFREE