mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-09 10:00:27 +01:00
Only set the main process nice value to less when a back-end compression is enabled.
This commit is contained in:
parent
e79127ace8
commit
32ff6edf9a
2
main.c
2
main.c
|
|
@ -862,7 +862,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
/* Set the main nice value to half that of the backend threads since
|
||||
* the rzip stage is usually the rate limiting step */
|
||||
if (control.nice_val > 0) {
|
||||
if (control.nice_val > 0 && !NO_COMPRESS) {
|
||||
if (unlikely(setpriority(PRIO_PROCESS, 0, control.nice_val / 2) == -1))
|
||||
print_err("Warning, unable to set nice value\n");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue