From: Timur Kirilichev
Date: Fri, 7 May 2010 02:31:26 +0000 (+0400)
Subject: collectd2html.pl: Further improvements to the XHTML support.
X-Git-Tag: collectd-4.9.3~12^2
X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=e6e95d5b9dc44ebfa39984c984e75327ce71d0ea;p=collectd.git
collectd2html.pl: Further improvements to the XHTML support.
Signed-off-by: Sebastian Harl
---
diff --git a/contrib/collectd2html.pl b/contrib/collectd2html.pl
index 22c43e59..fe4e2bdb 100644
--- a/contrib/collectd2html.pl
+++ b/contrib/collectd2html.pl
@@ -68,7 +68,7 @@ $HOST = $tmp[0] if (! defined $HOST);
my $svg_p = ($IMG_FMT eq "SVG");
my $IMG_SFX = $svg_p ? ".svg" : ".png";
my $IMG_DIR = "${HOST}.dir";
-my $HTML = "${HOST}.html";
+my $HTML = "${HOST}.xhtml";
################################################################################
#
@@ -124,10 +124,12 @@ print OUT <
$title
-
+
END
@@ -210,7 +212,7 @@ for (my $i = 0; $i < scalar(@rrds); ++$i) {
my $cleaned_bn = $bn;
$cleaned_bn =~ tr/%\//__/;
print OUT <$bn
+
END
# graph various ranges
@@ -227,12 +229,11 @@ END
my $cleaned_img = $img; $cleaned_img =~ s/%/%25/g;
if (! $svg_p) {
print OUT <
+
END
} else {
print OUT <