Merge branch 'collectd-5.4' into collectd-5.5
authorFlorian Forster <octo@collectd.org>
Tue, 8 Dec 2015 13:39:07 +0000 (14:39 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 8 Dec 2015 13:39:07 +0000 (14:39 +0100)
1  2 
src/collectd-tg.c
src/email.c
src/ping.c
src/postgresql.c
src/python.c
src/tail.c

Simple merge
diff --cc src/email.c
Simple merge
diff --cc src/ping.c
Simple merge
Simple merge
diff --cc src/python.c
Simple merge
diff --cc src/tail.c
@@@ -243,17 -230,13 +243,17 @@@ static int ctail_config_add_file (oconf
    for (i = 0; i < ci->children_num; i++)
    {
      oconfig_item_t *option = ci->children + i;
 -    int status;
 +    int status = 0;
  
 -    if (strcasecmp ("Match", option->key) == 0)
 +    if (strcasecmp ("Instance", option->key) == 0)
 +      status = cf_util_get_string (option, &plugin_instance);
 +    else if (strcasecmp ("Interval", option->key) == 0)
 +      cf_util_get_cdtime (option, &interval);
 +    else if (strcasecmp ("Match", option->key) == 0)
      {
 -      status = ctail_config_add_match (tm, plugin_instance, option);
 +      status = ctail_config_add_match (tm, plugin_instance, option, interval);
        if (status == 0)
-       num_matches++;
+         num_matches++;
        /* Be mild with failed matches.. */
        status = 0;
      }