From: Eric Biggers Date: Tue, 31 Dec 2013 00:13:36 +0000 (-0600) Subject: imagex_progress_func(): Fix variable X-Git-Tag: v1.6.0~41 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=df3f7be471421d70a7a094f8c1ba0e74d33eb00c imagex_progress_func(): Fix variable --- diff --git a/programs/imagex.c b/programs/imagex.c index 9569a255..d64f2e04 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -1102,15 +1102,15 @@ imagex_progress_func(enum wimlib_progress_msg msg, switch (msg) { case WIMLIB_PROGRESS_MSG_WRITE_STREAMS: { - static bool first = false; - if (!first) { + static bool first = true; + if (first) { imagex_printf(T("Writing %"TS"-compressed data " "using %u thread%"TS"\n"), wimlib_get_compression_type_string( info->write_streams.compression_type), info->write_streams.num_threads, (info->write_streams.num_threads == 1) ? T("") : T("s")); - first = true; + first = false; } } unit_shift = get_unit(info->write_streams.total_bytes, &unit_name);