From: Florian Forster Date: Fri, 13 Mar 2009 14:30:54 +0000 (+0100) Subject: contrib/collection3: Add the `index' to the parameters. X-Git-Tag: collectd-4.6.2~2^2~13 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=844bd1ec4ac00cf859bf26c0d8bd44da70c958e3;p=collectd.git contrib/collection3: Add the `index' to the parameters. --- diff --git a/contrib/collection3/bin/graph.cgi b/contrib/collection3/bin/graph.cgi index 7fe20871..c246bda6 100755 --- a/contrib/collection3/bin/graph.cgi +++ b/contrib/collection3/bin/graph.cgi @@ -20,6 +20,7 @@ our $Debug = param ('debug'); our $Begin = param ('begin'); our $End = param ('end'); our $GraphWidth = param ('width'); +our $Index = param ('index') || 0; our $OutputFormat = 'PNG'; our $ContentType = 'image/png'; @@ -167,7 +168,7 @@ if ($Debug) print "\$expires = $expires;\n"; } -my $args = $obj->getRRDArgs (0); +my $args = $obj->getRRDArgs (0 + $Index); if ($Debug) {