crop munin graphs
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Feb 2011 14:47:00 +0000 (14:47 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 12 Feb 2011 14:47:00 +0000 (14:47 +0000)
lib/PXElator/html.pm

index 0db7c9a..7374467 100644 (file)
@@ -102,7 +102,7 @@ sub conf {
                        } elsif ( $name eq 'kvm' ) {
                                $html = qq|<a href="/start_stop/kvm?nr=$html">$html</a>|;
                        } elsif ( $name eq 'munin' ) {
-                               $html = join("\n", map { my $url = $_; $url =~ s/-d\w+\.\w+$/.html/; qq|<a href="$url"><img src="$_"></a>| } split(/\s+/s,$html));
+                               $html = join("\n", map { my $url = $_; $url =~ s/-d\w+\.\w+$/.html/; qq|<a href="$url"><div style="float:right;overflow:hidden;width:415px;height:180px"><img src="$_" style="margin: -30px 0 0 -60px"></div></a>| } split(/\s+/s,$html));
                        } elsif ( $name eq 'ports' ) {
                                $html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs;
                        } else {