Code

contrib/collection3: Add the `index' to the parameters.
[collectd.git] / contrib / collection3 / bin / graph.cgi
index 7fe20871a20ccd7eee60bbf11837e9ec0a6968ed..c246bda6a078db65ccff92f85045f2b472037f8d 100755 (executable)
@@ -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)
 {