X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/blobdiff_plain/41cfd72381789f7b695a18d1051a938f2204b884..f447c2a1a5ed06c5fceda8f5476a1341cfc0f7f3:/upsgraph.pl
diff --git a/upsgraph.pl b/upsgraph.pl
index 954b8b0..3077e23 100755
--- a/upsgraph.pl
+++ b/upsgraph.pl
@@ -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}";
@@ -473,7 +473,7 @@ while(1) {
}
}
- print HTML2 "
";
+ print HTML2 "
\n";
$mtime=(stat("${outdir}/${hostname}.${var}.week.png.work"))[9];
($averages, $width, $height) =
@@ -490,7 +490,7 @@ while(1) {
}
}
- print HTML2 "
";
+ print HTML2 "
\n";
$mtime=(stat("${outdir}/${hostname}.${var}.year.png.work"))[9];
($averages, $width, $height) =
@@ -507,7 +507,7 @@ while(1) {
}
}
- print HTML2 "
";
+ print HTML2 "
\n";
print HTML2 "