Code

Merge branch 'collectd-4.0' into collectd-4.1
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 12 Oct 2007 16:33:59 +0000 (18:33 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 12 Oct 2007 16:33:59 +0000 (18:33 +0200)
Conflicts:

src/rrdtool.c

1  2 
src/collectd.conf.pod
src/network.c
src/processes.c
src/rrdtool.c
src/unixsock.c

Simple merge
diff --cc src/network.c
index b0f8303f552a37e16c06ebd2b147bb87a90f8a49,164759b6d5cf8d29fe3422d2eb8f07490ced627d..c81d7110664da7d5217d07cc4e3076fc55eec640
@@@ -1100,20 -1092,8 +1099,18 @@@ static int add_to_buffer (char *buffer
                                        (uint64_t) vl->time))
                        return (-1);
                vl_def->time = vl->time;
-               DEBUG ("network plugin: add_to_buffer: time = %u",
-                               (unsigned int) vl->time);
        }
  
 +      if (vl_def->interval != vl->interval)
 +      {
 +              if (write_part_number (&buffer, &buffer_size, TYPE_INTERVAL,
 +                                      (uint64_t) vl->interval))
 +                      return (-1);
 +              vl_def->interval = vl->interval;
 +              DEBUG ("network plugin: add_to_buffer: interval = %i",
 +                              (int) vl->interval);
 +      }
 +
        if (strcmp (vl_def->plugin, vl->plugin) != 0)
        {
                if (write_part_string (&buffer, &buffer_size, TYPE_PLUGIN,
diff --cc src/processes.c
Simple merge
diff --cc src/rrdtool.c
index 7002dcfbd61050616d9e308def88ff48b67895f3,8ad010696f4812bd6b0e8612603b48b21e96350f..77d8716619dfd32df737853dd9f1865ee55c76ad
@@@ -714,7 -591,10 +714,7 @@@ static void rrd_cache_flush (int timeou
        avl_iterator_t *iter;
        int i;
  
-       DEBUG ("Flushing cache, timeout = %i", timeout);
 -      if (cache == NULL)
 -              return;
 -
+       DEBUG ("rrdtool plugin: Flushing cache, timeout = %i", timeout);
  
        now = time (NULL);
  
diff --cc src/unixsock.c
Simple merge