summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8010671)
raw | patch | inline | side by side (parent: 8010671)
author | Jarle Bjørgeengen <jarle.bjorgeengen@usit.uio.no> | |
Mon, 25 Aug 2008 20:30:27 +0000 (22:30 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 25 Aug 2008 20:30:27 +0000 (22:30 +0200) |
bindings/perl/Collectd/Unixsock.pm | patch | blob | history |
index 8749c1abff28e3fd1ee2880535a765b5911d5dae..71a6d09437f614cc6b18237bff0ddb8d13e25332 100644 (file)
my $msg;
my $identifier;
my $values;
+ my $interval = "";
+
+ if (defined $args{'interval'})
+ {
+ $interval = ' interval=' . $args{'interval'};
+ }
$identifier = _create_identifier (\%args) or return;
if (!$args{'values'})
$values = join (':', $time, map { defined ($_) ? $_ : 'U' } (@{$args{'values'}}));
}
- $msg = "PUTVAL $identifier $values\n";
+ $msg = "PUTVAL $identifier$interval $values\n";
#print "-> $msg";
send ($fh, $msg, 0) or confess ("send: $!");
$msg = undef;