mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-24 20:22:11 +03:00
(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:
parent
437211791f
commit
78df2f5b56
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user