projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5885006
)
collectd-perl(5): Fix example Perl script.
author
Florian Forster
<octo@collectd.org>
Wed, 14 Dec 2011 12:02:16 +0000
(13:02 +0100)
committer
Florian Forster
<octo@collectd.org>
Wed, 14 Dec 2011 12:02:16 +0000
(13:02 +0100)
Thanks to Sergey for catching this!
Change-Id: I4bbb609079734cd54d68f77681ea742b4eb83239
src/collectd-perl.pod
patch
|
blob
|
history
diff --git
a/src/collectd-perl.pod
b/src/collectd-perl.pod
index
6b44722
..
d5401dd
100644
(file)
--- a/
src/collectd-perl.pod
+++ b/
src/collectd-perl.pod
@@
-656,9
+656,9
@@
A very simple read function might look like:
sub foobar_read
{
- my $vl = { plugin => 'foobar' };
+ my $vl = { plugin => 'foobar'
, type => 'gauge'
};
$vl->{'values'} = [ rand(42) ];
- plugin_dispatch_values (
'gauge',
$vl);
+ plugin_dispatch_values ($vl);
return 1;
}