From a05629a54acff49c918859b01d6a4bf177af9051 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Sat, 30 Aug 2008 09:38:41 +0000 Subject: seek to start of the file prior to storing --- lib/Smokeping/Master.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-24-g4f1b