summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Smokeping/Master.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping/Master.pm b/lib/Smokeping/Master.pm
index 945cb78..e54a264 100644
--- a/lib/Smokeping/Master.pm
+++ b/lib/Smokeping/Master.pm
@@ -105,7 +105,7 @@ sub save_updates {
" in the local data structure. Make sure you run the ".
"smokeping daemon. ($cfg->{General}{datadir})\n";
}
- elsif ( open ($hand, '+>>' , $file) ) {
+ elsif ( open (my $hand, '+>>' , $file) ) {
for (my $i = 10; $i < 0; $i--){
if ( flock $hand, LOCK_EX ){
my $existing = [];