summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-10-28 21:25:03 +0100
committerraveit65 <[email protected]>2013-10-28 21:25:03 +0100
commitc5b92183993bc71fd7798f3dac869174453fe1db (patch)
tree4cc5b30eab044cb60f250d9535db11b442d3fc76
parentd2e86889e0386a0dda2f4f8bbffd464bd3778ee7 (diff)
downloadengrampa-c5b92183993bc71fd7798f3dac869174453fe1db.tar.bz2
engrampa-c5b92183993bc71fd7798f3dac869174453fe1db.tar.xz
7z: changed the compression level options
normal compression : from "-mx=5" to "-mx=7" maximum compression: from "-mx=7" to "-mx=9 -m0=lzma2" https://bugzilla.gnome.org/show_bug.cgi?id=635083
-rw-r--r--src/fr-command-7z.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index b61868b..fbce9cf 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -347,13 +347,18 @@ fr_command_7z_add (FrCommand *comm,
switch (comm->compression) {
case FR_COMPRESSION_VERY_FAST:
- fr_process_add_arg (comm->process, "-mx=1"); break;
+ fr_process_add_arg (comm->process, "-mx=1");
+ break;
case FR_COMPRESSION_FAST:
- fr_process_add_arg (comm->process, "-mx=5"); break;
+ fr_process_add_arg (comm->process, "-mx=5");
+ break;
case FR_COMPRESSION_NORMAL:
- fr_process_add_arg (comm->process, "-mx=5"); break;
+ fr_process_add_arg (comm->process, "-mx=7");
+ break;
case FR_COMPRESSION_MAXIMUM:
- fr_process_add_arg (comm->process, "-mx=7"); break;
+ fr_process_add_arg (comm->process, "-mx=9");
+ fr_process_add_arg (comm->process, "-m0=lzma2");;
+ break;
}
if (is_mime_type (comm->mime_type, "application/x-ms-dos-executable"))