author | Florian Forster <octo@noris.net> | |
Wed, 23 Sep 2009 16:56:31 +0000 (18:56 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 23 Sep 2009 16:56:31 +0000 (18:56 +0200) |
1 | 2 | |||
---|---|---|---|---|
src/netapp.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/netapp.c
index 202981dcaa0d1e9c868dfecbf38f8af93af9176f,a07424b8f3c7df16dd9b91d116d26fc053142543..cbba8d6c4dd8e9ba1f2d805e69b0480e32f7ce45
--- 1/src/netapp.c
--- 2/src/netapp.c
+++ b/src/netapp.c
name = na_child_get_string(counter, "name");
if (!strcmp(name, "name_cache_hit"))
- name_cache_hit = na_child_get_uint64(counter, "value", 0);
+ name_cache_hit = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "name_cache_miss"))
- name_cache_miss = na_child_get_uint64(counter, "value", 0);
+ name_cache_miss = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "find_dir_hit"))
- find_dir_hit = na_child_get_uint64(counter, "value", 0);
+ find_dir_hit = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "find_dir_miss"))
- find_dir_miss = na_child_get_uint64(counter, "value", 0);
+ find_dir_miss = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "buf_hash_hit"))
- buf_hash_hit = na_child_get_uint64(counter, "value", 0);
+ buf_hash_hit = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "buf_hash_miss"))
- buf_hash_miss = na_child_get_uint64(counter, "value", 0);
+ buf_hash_miss = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "inode_cache_hit"))
- inode_cache_hit = na_child_get_uint64(counter, "value", 0);
+ inode_cache_hit = na_child_get_uint64(counter, "value", UINT64_MAX);
else if (!strcmp(name, "inode_cache_miss"))
- inode_cache_miss = na_child_get_uint64(counter, "value", 0);
+ inode_cache_miss = na_child_get_uint64(counter, "value", UINT64_MAX);
else
- INFO ("netapp plugin: Found unexpected child: %s", name);
+ DEBUG("netapp plugin: Found unexpected child: %s", name);
}
/* Submit requested counters */