OSDN Git Service

progress: Allow regressing progress
authorMax Reitz <mreitz@redhat.com>
Mon, 27 Jul 2015 15:51:31 +0000 (17:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 18 Dec 2015 13:34:43 +0000 (14:34 +0100)
commitbd5072d75622c3a702741064df87ea8911bae1a4
treeb4ebcfde055893e3de4adbd8009d3d3839793861
parent0a8111e0fbeccdf94ee011bc3b3013a45166a9a8
progress: Allow regressing progress

Progress may regress; this should be displayed correctly by
qemu_progress_print().

While touching that area of code, drop the redundant parentheses in the
same condition.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
util/qemu-progress.c