From: Sebastian Harl Date: Wed, 14 Nov 2012 17:58:01 +0000 (+0100) Subject: Collectd::Plugins::OpenVZ: Use plugin_get_interval() rather than $interval_g. X-Git-Tag: collectd-5.2.0~20^2~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=eeee599d3de438d72e44cce0eb427838135f87ad;p=collectd.git Collectd::Plugins::OpenVZ: Use plugin_get_interval() rather than $interval_g. --- diff --git a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm index 29441574..ea3cee99 100644 --- a/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm +++ b/bindings/perl/lib/Collectd/Plugins/OpenVZ.pm @@ -36,7 +36,7 @@ my $last_stat = {}; sub openvz_read { - my %v = (time => time(), interval => $interval_g); + my %v = (time => time(), interval => plugin_get_interval()); my (@veids, $veid, $name, $key, $val, $i, @lines, @parts, @counters); @veids = map { s/ //g; $_; } split(/\n/, `$vzlist -Ho veid`);