From 32ff6edf9ae1f6ec08c5ba2cbd78aae11dbc5f1b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 23 Feb 2011 01:26:51 +1100 Subject: [PATCH] Only set the main process nice value to less when a back-end compression is enabled. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 6158eff..192130c 100644 --- a/main.c +++ b/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 {