diff options
author | Konstantin Ryabitsev <mricon@kernel.org> | 2011-11-27 15:35:33 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <mricon@kernel.org> | 2011-11-27 15:35:33 -0500 |
commit | 51218f7d4463122058060b6ab7f519f2ce702ded (patch) | |
tree | 33c73a0e61199a9d3b2b38c59c7662a82c0defa7 | |
parent | 1b30206ee78c592d7ecb967ebfea05c917437483 (diff) | |
download | kup-51218f7d4463122058060b6ab7f519f2ce702ded.tar.gz |
Remember to set noet
-rwxr-xr-x | kup-server | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -576,13 +576,13 @@ sub make_compressed_data() my %workers; my $nworkers = 0; - my $tarsize = -s $tmpdir.'/data'; + my $tarsize = -s $tmpdir.'/data'; - if ($tarsize gt 26214400) { - # Only warn when file size is over 25MB - printf "Compressing %u bytes into %s, be patient...\n", $tarsize, - (join " ", keys(%zformats)); - } + if ($tarsize gt 26214400) { + # Only warn when file size is over 25MB + printf "Compressing %u bytes into %s, be patient...\n", $tarsize, + (join " ", keys(%zformats)); + } foreach my $e (keys(%zformats)) { my @c = ($zformats{$e}, '-9'); @@ -635,14 +635,14 @@ sub make_compressed_data() fatal("Failed to compress output data"); } - my $zsize = -s $tmpdir.'/data'.$e; - my $zpc = int($zsize / $tarsize * 100); + my $zsize = -s $tmpdir.'/data'.$e; + my $zpc = int($zsize / $tarsize * 100); - if ($tarsize gt 26214400) { - $| = 1; - printf "%s complete: %u bytes (%d%% original size)\n", $e, - $tarsize, $zpc; - } + if ($tarsize gt 26214400) { + $| = 1; + printf "%s complete: %u bytes (%d%% original size)\n", $e, + $tarsize, $zpc; + } syslog(LOG_DEBUG, "%s compression: %u -> %u bytes (%d%%)", @@ -1201,3 +1201,5 @@ while (defined($line = get_command())) { syslog(LOG_NOTICE, "Session completed successfully"); exit 0; + +#vim: noet |