Merge remote branch 'tokkee/sh/collectd-4.6' into collectd-4.6
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 2 Aug 2009 10:22:20 +0000 (12:22 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 2 Aug 2009 10:22:20 +0000 (12:22 +0200)
contrib/collection3/bin/graph.cgi
contrib/collection3/etc/collection.conf
src/utils_cache.c

index c096dc9..8a5bf85 100755 (executable)
@@ -3,6 +3,7 @@
 use strict;
 use warnings;
 use lib ('../lib');
+use utf8;
 
 use FindBin ('$RealBin');
 use Carp (qw(confess cluck));
index b2c1b87..86cb3aa 100644 (file)
@@ -498,8 +498,8 @@ GraphWidth 400
   DataSources value
   DSName value Temp
   RRDTitle "Temperature ({instance})"
-  RRDVerticalLabel "°Celsius"
-  RRDFormat "%4.1lf°C"
+  RRDVerticalLabel "°Celsius"
+  RRDFormat "%4.1lf°C"
 </Type>
 <Type users>
   DataSources users
@@ -525,4 +525,4 @@ GraphWidth 400
   RRDVerticalLabel "W"
   RRDFormat "%4.1lfW"
 </Type>
-# vim: set sw=2 sts=2 et syntax=apache fileencoding=latin-1 :
+# vim: set sw=2 sts=2 et syntax=apache fileencoding=utf-8 :
index 60d3283..33dc6b1 100644 (file)
@@ -296,6 +296,7 @@ int uc_check_timeout (void)
     {
       DEBUG ("uc_check_timeout: %s is missing but ``uninteresting''",
          keys[i]);
+      ce = NULL;
       status = c_avl_remove (cache_tree, keys[i],
          (void *) &key, (void *) &ce);
       if (status != 0)
@@ -304,7 +305,8 @@ int uc_check_timeout (void)
       }
       sfree (keys[i]);
       sfree (key);
-      cache_free (ce);
+      if (ce != NULL)
+        cache_free (ce);
       continue;
     }