diff options
Diffstat (limited to 'lib/Smokeping/Slave.pm')
-rw-r--r-- | lib/Smokeping/Slave.pm | 2 |
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', |