mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
STDOUT does not affect the compression window in master branch.
This commit is contained in:
parent
b9470b43dc
commit
9499a7b453
7
main.c
7
main.c
|
|
@ -766,12 +766,9 @@ static void show_summary(void)
|
||||||
temp_ramsize = control.ramsize;
|
temp_ramsize = control.ramsize;
|
||||||
if (BITS32)
|
if (BITS32)
|
||||||
temp_ramsize = MAX(temp_ramsize - 900000000ll, 900000000ll);
|
temp_ramsize = MAX(temp_ramsize - 900000000ll, 900000000ll);
|
||||||
if (STDIN || STDOUT) {
|
if (STDIN)
|
||||||
if (STDIN && STDOUT)
|
|
||||||
temp_chunk = temp_ramsize * 2 / 9;
|
|
||||||
else
|
|
||||||
temp_chunk = temp_ramsize / 3;
|
temp_chunk = temp_ramsize / 3;
|
||||||
} else
|
else
|
||||||
temp_chunk = temp_ramsize / 3 * 2;
|
temp_chunk = temp_ramsize / 3 * 2;
|
||||||
temp_window = temp_chunk / (100 * 1024 * 1024);
|
temp_window = temp_chunk / (100 * 1024 * 1024);
|
||||||
print_verbose("Heuristically Computed Compression Window: %lld = %lldMB\n", temp_window, temp_window * 100ull);
|
print_verbose("Heuristically Computed Compression Window: %lld = %lldMB\n", temp_window, temp_window * 100ull);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue