summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/Slave.pm
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-08-13 14:25:55 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-08-13 14:25:55 +0200
commita178628cbb7364319cf7c27bc0270545015be5ea (patch)
tree2d6c0dad841c7e49ecf289c7551f4cf8d7ca9442 /lib/Smokeping/Slave.pm
parent23af83eeef3d6a307034291ac72d30418e987137 (diff)
downloadsmokeping-a178628cbb7364319cf7c27bc0270545015be5ea.tar.gz
smokeping-a178628cbb7364319cf7c27bc0270545015be5ea.tar.xz
only push data when there is data
Diffstat (limited to 'lib/Smokeping/Slave.pm')
-rw-r--r--lib/Smokeping/Slave.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping/Slave.pm b/lib/Smokeping/Slave.pm
index a80eae3..533201e 100644
--- a/lib/Smokeping/Slave.pm
+++ b/lib/Smokeping/Slave.pm
@@ -66,7 +66,7 @@ sub submit_results {
$store .= ".cache";
my $restore = retrieve $store if -f $store;
my $data = get_results($slave_cfg, $cfg, $probes, $cfg->{Targets}, '', $myprobe);
- push @$data, @$restore;
+ push @$data, @$restore if $restore;
my $data_dump = join "\n",@{$data};
my $ua = LWP::UserAgent->new(
agent => 'smokeping-slave/1.0',