I am using a modified version of bigtops to test ... see attachments Today Matthew Chambers wrote:
> > no you are right ... vertically this is fine ... (more or less) > > > That's what I thought. Certainly the horizontal size needs to be tested > (and I did do that when doing the reduce-title-font-size-until-it-fits > change, which I still haven't bothered to reimplement). > > > > hmmm . I just tried it and the result looks exactly es expected ... > > I have no idea what is hitting you ... > > Do you mean it looks as expected in that there is proper legend spacing? > Are you testing with multi-line legends? What kind of testing are you > doing? [...] > $ ls /frogstar/usr/ppc/lib/librrd.so* -l > 16 Jun 14 10:26 /frogstar/usr/ppc/lib/librrd.so -> librrd.so.2.0.99 > 16 Jun 14 10:26 /frogstar/usr/ppc/lib/librrd.so.2 -> > librrd.so.2.0.99 > 640946 May 29 16:19 /frogstar/usr/ppc/lib/librrd.so.2.0.10 > 675869 Jun 1 11:55 /frogstar/usr/ppc/lib/librrd.so.2.0.11 > 503542 Jun 14 10:26 /frogstar/usr/ppc/lib/librrd.so.2.0.99 > > Everything looks good to my inexpert eyes. indeed tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten http://it.oetiker.ch [EMAIL PROTECTED] ++41 62 213 9902
#! /usr/bin/perl
# this is for after install
use lib qw( /scratch/rrdtool-13trunk/lib/perl );
use RRDs;
my $start=time;
my $rrd="randome.rrd";
my $name = $0;
$name =~ s/.*\///g;
$name =~ s/\.pl.*//g;
RRDs::create ($rrd, "--start",$start-1, "--step",300,
"DS:a:GAUGE:600:U:U",
"DS:b:GAUGE:600:U:U",
"RRA:AVERAGE:0.5:1:300");
my $ERROR = RRDs::error;
die "$0: unable to create `$rrd': $ERROR\n" if $ERROR;
# dropt some data into the rrd
my $t;
for ($t=$start; $t<$start+300*300; $t+=300){
RRDs::update $rrd, "$t:".rand(100).":".(sin($t/800)*50+50);
if ($ERROR = RRDs::error) {
die "$0: unable to update `$rrd': $ERROR\n";
}
}
RRDs::graph "$name.png",
"--title", uc($name)." Demo",
"--start", "$start + 1 h",
"--end", "start + 1000 min",
"--interlace",
"--imgformat","PNG",
"--width=450",
"--height=160",
"--lower-limit=0",
"--vertical-label=Bytes",
"--base",1024,
"--rigid",
"--full-size-mode",
"DEF:a=$rrd:a:AVERAGE",
"DEF:b=$rrd:b:AVERAGE",
"CDEF:line=TIME,2400,%,300,LT,a,UNKN,IF",
"AREA:b#00b6e4:Memory Used",
"AREA:line#0022e9:Memory Shared",
"AREA:line#0022e9:Memory Cache",
"AREA:line#0022e9:Memory Buffered",
"AREA:line#0022e9:Memory Swapped",
"AREA:line#0022e9:Total In-Core Memory",
"LINE3:line#ff0000",
;
if ($ERROR = RRDs::error) {
die "ERROR: $ERROR\n";
};
print "This script has created $name.png in the current directory\n";
print "This demonstrates the use of the TIME and % RPN operators\n";
<<attachment: bigtops.png>>
_______________________________________________ rrd-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
