summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3583ca0)
raw | patch | inline | side by side (parent: 3583ca0)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 16 Aug 2008 07:11:46 +0000 (07:11 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 16 Aug 2008 07:11:46 +0000 (07:11 +0000) |
program/bindings/perl-shared/RRDs.pm | patch | blob | history |
index df115c1cdb248aeed702888ae379bba2ed91228e..fbd9c96b963963149104e765a61c98a7dbeddd84 100644 (file)
$lastupdate = RRDs::last ...
-B<RRDs::graph> returns an pointer to an ARRAY containing the x-size and y-size of the
-created image and results of the PRINT arguments.
+B<RRDs::graph> returns an ARRAY containing the x-size and y-size of the
+created image and a pointer to an array with the results of the PRINT arguments.
- ($averages,$xsize,$ysize) = RRDs::graph ...
+ ($result_arr,$xsize,$ysize) = RRDs::graph ...
print "Imagesize: ${xsize}x${ysize}\n";
print "Averages: ", (join ", ", @$averages);
print "DS names: ", join (", ", @$names)."\n";
print "Data points: ", $#$data + 1, "\n";
print "Data:\n";
- foreach my $line (@$data) {
+ for my $line (@$data) {
print " ", scalar localtime($start), " ($start) ";
$start += $step;
- foreach my $val (@$line) {
+ for my $val (@$line) {
printf "%12.1f ", $val;
}
print "\n";