projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda68e2
)
ethstat plugin: Fix off-by-one error.
author
Florian Forster
<octo@collectd.org>
Sun, 23 Sep 2012 09:56:58 +0000
(11:56 +0200)
committer
Florian Forster
<octo@collectd.org>
Sun, 23 Sep 2012 09:56:58 +0000
(11:56 +0200)
This hopefully fixes Github issue #135.
src/ethstat.c
patch
|
blob
|
history
diff --git
a/src/ethstat.c
b/src/ethstat.c
index
ae1b689
..
746fc61
100644
(file)
--- a/
src/ethstat.c
+++ b/
src/ethstat.c
@@
-104,7
+104,7
@@
static int ethstat_add_map (const oconfig_item_t *ci) /* {{{ */
memset (map, 0, sizeof (*map));
sstrncpy (map->type, ci->values[1].value.string, sizeof (map->type));
- if (ci->values_num ==
2
)
+ if (ci->values_num ==
3
)
sstrncpy (map->type_instance, ci->values[2].value.string,
sizeof (map->type_instance));