(progress_update_one): don't call g_get_real_time() twice at first time.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-06-19 13:38:27 +03:00
parent 437211791f
commit 78df2f5b56
1 changed files with 3 additions and 3 deletions

View File

@ -817,11 +817,11 @@ progress_update_one (file_op_total_context_t * tctx, file_op_context_t * ctx, of
tctx->progress_count++;
tctx->progress_bytes += (uintmax_t) add;
if (tv_start < 0)
tv_start = g_get_real_time ();
tv_current = g_get_real_time ();
if (tv_start < 0)
tv_start = tv_current;
if (tv_current - tv_start > FILEOP_UPDATE_INTERVAL_US)
{
if (verbose && ctx->dialog_type == FILEGUI_DIALOG_MULTI_ITEM)