From: Eric Bollengier Date: Thu, 16 Jul 2009 09:11:32 +0000 (+0000) Subject: update apache section in INSTALL file and try to choose better color for X-Git-Tag: Release-3.0.2~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=944292a74b5bc00912f4eed71cd6c10ac3484673;p=bacula%2Fbacula update apache section in INSTALL file and try to choose better color for graphs. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9017 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/cgi/bgraph.pl b/gui/bweb/cgi/bgraph.pl index c43cee86ae..760e670a04 100755 --- a/gui/bweb/cgi/bgraph.pl +++ b/gui/bweb/cgi/bgraph.pl @@ -191,6 +191,8 @@ sub get_graph { my (@options) = @_; my $graph; + use GD::Graph::colour qw(:colours); + if ($gtype eq 'lines') { use GD::Graph::lines; $graph = GD::Graph::lines->new ( $arg->{width}, $arg->{height} ); @@ -216,6 +218,13 @@ sub get_graph 'x_number_format' => sub { strftime('%D', localtime($_[0])) }, 'x_tick_number' => 5*$arg->{width}/800, 'overwrite' => 1, + dclrs => [ add_colour("#afd8f8"), add_colour("#f6bd0f"), + add_colour("#8bba00"), add_colour("#ff8e46"), + add_colour("#008e8e"), add_colour("#d64646"), + add_colour("#8e468e"), add_colour("#588526"), + add_colour("#b3aa00"), add_colour("#008ed6"), + add_colour("#9d080d"), add_colour("#a186be"), + ], @options, );