]> git.zerfleddert.de Git - upsgraph/commitdiff
Fix creation of new rrd files: Trailing space seems to be harmful
authorBenjamin Oechslein <benjamin.oechslein@informatik.uni-erlangen.de>
Thu, 8 Jan 2015 20:49:35 +0000 (21:49 +0100)
committerBenjamin Oechslein <benjamin.oechslein@informatik.uni-erlangen.de>
Fri, 9 Jan 2015 21:29:49 +0000 (22:29 +0100)
upsgraph.pl

index 0d19fb6cd0fae054eae8e579af8819044d408d24..3077e2357abaa0c458b56e1428a4b783782335c8 100755 (executable)
@@ -79,7 +79,7 @@ sub rrdcreate(@) {
 
        push @cmd, "DS:${field}:GAUGE:600:" .
                $vars->{$field}->{'min'} . ":" .
-               $vars->{$field}->{'max'} . " ";
+               $vars->{$field}->{'max'};
 
        push @cmd, "RRA:AVERAGE:0.5:1:${keep}";
 
Impressum, Datenschutz