diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-08-30 11:38:41 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-08-30 11:38:41 +0200 |
commit | a05629a54acff49c918859b01d6a4bf177af9051 (patch) | |
tree | 4bc80cf3090ee005b92991d580782ddb86420e9c | |
parent | 3e3de0ed8ad6b87df4b2409373ebb6708e55f9c3 (diff) | |
download | smokeping-a05629a54acff49c918859b01d6a4bf177af9051.tar.gz smokeping-a05629a54acff49c918859b01d6a4bf177af9051.tar.xz |
seek to start of the file prior to storing
-rw-r--r-- | lib/Smokeping/Master.pm | 2 |
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; |