diff options
author | Sergey Kandaurov <pluknet@FreeBSD.org> | 2011-02-25 13:59:59 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@FreeBSD.org> | 2011-02-25 13:59:59 +0000 |
commit | 023c93f2c87a9a9634ee7f05e601b5c34ac50301 (patch) | |
tree | 269dae574467cab5275474f391bdf2cf0ef4be0e /usr.sbin/mfiutil/mfi_cmd.c | |
parent | 9a253c101e114405465fc930979e6423725604cb (diff) | |
download | src-test2-023c93f2c87a9a9634ee7f05e601b5c34ac50301.tar.gz src-test2-023c93f2c87a9a9634ee7f05e601b5c34ac50301.zip |
Notes
Diffstat (limited to 'usr.sbin/mfiutil/mfi_cmd.c')
-rw-r--r-- | usr.sbin/mfiutil/mfi_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mfiutil/mfi_cmd.c b/usr.sbin/mfiutil/mfi_cmd.c index 07fe14831e7f..7fedfb6b7f52 100644 --- a/usr.sbin/mfiutil/mfi_cmd.c +++ b/usr.sbin/mfiutil/mfi_cmd.c @@ -316,7 +316,7 @@ mfi_display_progress(const char *label, struct mfi_progress *prog) printf("%s: %.2f%% complete, after %ds", label, (float)prog->progress * 100 / 0xffff, prog->elapsed_seconds); - if (prog->elapsed_seconds > 10) { + if (prog->progress != 0 && prog->elapsed_seconds > 10) { printf(" finished in "); seconds = (0x10000 * (uint32_t)prog->elapsed_seconds) / prog->progress - prog->elapsed_seconds; |