projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
filecount plugin: Substitute slashes with underscores.
[collectd.git]
/
src
/
filecount.c
diff --git
a/src/filecount.c
b/src/filecount.c
index
d15af75
..
3d08cbe
100644
(file)
--- a/
src/filecount.c
+++ b/
src/filecount.c
@@
-101,9
+101,9
@@
static int fc_config_set_instance (fc_directory_conf_t *dir, const char *str)
strncpy (buffer, str, sizeof (buffer));
for (ptr = buffer; *ptr != 0; ptr++)
if (*ptr == '/')
- *ptr = '
-
';
+ *ptr = '
_
';
- for (ptr = buffer; *ptr == '
-
'; ptr++)
+ for (ptr = buffer; *ptr == '
_
'; ptr++)
/* do nothing */;
if (*ptr == 0)