summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf5f67a)
raw | patch | inline | side by side (parent: cf5f67a)
author | Sven Trenkel <collectd@semidefinite.de> | |
Sat, 26 Sep 2009 01:27:41 +0000 (03:27 +0200) | ||
committer | Sven Trenkel <collectd@semidefinite.de> | |
Sat, 26 Sep 2009 01:27:41 +0000 (03:27 +0200) |
on this filer.
src/netapp.c | patch | blob | history |
diff --git a/src/netapp.c b/src/netapp.c
index 87b88501fff3b54b7ee718e73319e3811e63b53c..bce92ea640c7429c02d2b60eceb978201a7675ec 100644 (file)
--- a/src/netapp.c
+++ b/src/netapp.c
@@ -1005,7 +1005,7 @@ static void collect_perf_system_data(host_config_t *host, na_elem_t *out, void *
cpu_total = (counter_t) value;
counter_flags |= 0x20;
} else if ((cfg_system->flags & CFG_SYSTEM_OPS)
- && (strlen(name) > 4)
+ && (value > 0) && (strlen(name) > 4)
&& (!strcmp(name + strlen(name) - 4, "_ops"))) {
submit_counter (host->name, instance, "disk_ops_complex", name,
(counter_t) value, timestamp);