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 1f4521d..e2c50fd 100644
--- a/lib/Smokeping/Master.pm
+++ b/lib/Smokeping/Master.pm
@@ -143,7 +143,7 @@ sub save_updates {
map {
push @{$existing}, [ $slave, $_->[0], $_->[1] ];
} @{$u{$name}};
-
+ seek $fh, 0, 0;
nstore_fd($existing, $fh);
flock($fh, LOCK_UN);
close $fh;