From d71b1b21b67b6ae08de2220a3b0aa589ae222c1c Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Tue, 5 Jan 2016 17:12:46 +0100 Subject: [PATCH] Always print the CPU value, even if 0% In dry, it's really 0. --- cmdline/state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmdline/state.c b/cmdline/state.c index 465f9f89..d15949f4 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -3968,8 +3968,7 @@ int state_progress(struct snapraid_state* state, block_off_t blockpos, block_off msg_bar("%u%%, %u MiB", out_perc, (unsigned)(countsize / MEGA)); if (out_speed) msg_bar(", %u MiB/s", out_speed); - if (out_cpu) - msg_bar(", CPU %u%%", out_cpu); + msg_bar(", CPU %u%%", out_cpu); if (out_eta) msg_bar(", %u:%02u ETA", out_eta / 60, out_eta % 60); msg_bar("%s\r", PROGRESS_CLEAR);