From: Florian Forster Date: Sun, 24 Aug 2008 08:58:39 +0000 (+0200) Subject: filecount plugin: Substitute slashes with underscores. X-Git-Tag: collectd-4.5.0~45 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=214adc01bcc2934d15fa54941d5943375f0cc586;p=collectd.git filecount plugin: Substitute slashes with underscores. Not dashes. Somehow I now like underscores better. --- diff --git a/src/filecount.c b/src/filecount.c index d15af757..3d08cbe2 100644 --- 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)