--- projects/cms/source/reports/rrdgraphing/graph.pl 2005/06/29 10:26:40 1.19 +++ projects/cms/source/reports/rrdgraphing/graph.pl 2006/11/23 16:37:44 1.20 @@ -27,7 +27,7 @@ # Generates graphs from rrd databases for i-scream data. # # $Author: tdb $ -# $Id: graph.pl,v 1.19 2005/06/29 10:26:40 tdb Exp $ +# $Id: graph.pl,v 1.20 2006/11/23 16:37:44 tdb Exp $ #------------------------------------------------------------ ## TODO @@ -35,7 +35,7 @@ # -- allow configurable periods of graphs # -- comments, types, etc -my($version) = '$Id: graph.pl,v 1.19 2005/06/29 10:26:40 tdb Exp $'; +my($version) = '$Id: graph.pl,v 1.20 2006/11/23 16:37:44 tdb Exp $'; $| = 1; @@ -46,7 +46,7 @@ use RRDs; # define variables that will be read from the config # nb. keep this insync with the config file! use vars qw{ - $imgdir $rrddir + $imgdir $imgwidth $imgheight $rrddir $maxrrdage $maximgage $deleterrds $deleteimgs $hex_slash $hex_underscore $hex_space $hex_colon $hex_bslash $hex_rbracket $hex_lbracket $hex_plus $hex_hash @@ -424,6 +424,8 @@ sub makegraph() { push @rrdcmd, "--imgformat=PNG"; push @rrdcmd, "--lower-limit=0"; push @rrdcmd, "--vertical-label=$vlabel"; + push @rrdcmd, "--width=$imgwidth"; + push @rrdcmd, "--height=$imgheight"; # not entirely convinced this is good... push @rrdcmd, "--alt-autoscale-max"; # add any further raw commands