]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
imagex_progress_func(): Fix variable
[wimlib] / programs / imagex.c
index 9569a255cd2d1f90cfcab3dab469702f79488441..d64f2e04d62ca19d9c5bfe00cda192683b8cca3f 100644 (file)
@@ -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);