projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8880027
)
allow fractional seconds in listval_filter()
author
Matthias Bethke
<mbe@financial.com>
Tue, 22 Nov 2016 16:35:36 +0000
(23:35 +0700)
committer
Matthias Bethke
<mbe@financial.com>
Tue, 22 Nov 2016 16:35:36 +0000
(23:35 +0700)
bindings/perl/lib/Collectd/Unixsock.pm
patch
|
blob
|
history
diff --git
a/bindings/perl/lib/Collectd/Unixsock.pm
b/bindings/perl/lib/Collectd/Unixsock.pm
index
ca21d40
..
37f04cf
100644
(file)
--- a/
bindings/perl/lib/Collectd/Unixsock.pm
+++ b/
bindings/perl/lib/Collectd/Unixsock.pm
@@
-383,7
+383,7
@@
sub listval_filter
(exists $args{plugin_instance} ? "-$args{plugin_instance}" : '(?:-[^/]+)?') .
(exists $args{type} ? "/$args{type}" : '/[^/-]+') .
(exists $args{type_instance} ? "-$args{type_instance}" : '(?:-[^/]+)?');
- $pattern = qr/^\d+ $pattern$/;
+ $pattern = qr/^\d+
\.\d+
$pattern$/;
my $msg = $self->_socket_command('LISTVAL') or return;
($nresults, $msg) = split / /, $msg, 2;
@@
-410,7
+410,7
@@
sub listval_filter
} # for (i = 0 .. $status)
return @ret;
-} # listval
+} # listval
_filter
=item I<$res> = I<$self>-E<gt>B<listval> ()