From e6e95d5b9dc44ebfa39984c984e75327ce71d0ea Mon Sep 17 00:00:00 2001
From: Timur Kirilichev
Date: Fri, 7 May 2010 06:31:26 +0400
Subject: [PATCH] collectd2html.pl: Further improvements to the XHTML support.
Signed-off-by: Sebastian Harl
---
contrib/collectd2html.pl | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
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 <