delay progress display when checking out files
Let's start displaying progress only if more than 50% of total number of files remains to be checked out after 2 seconds. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
180a9f2268
commit
55a9137d8a
@ -304,13 +304,8 @@ static void check_updates(struct cache_entry **src, int nr,
|
|||||||
total++;
|
total++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Don't bother doing this for very small updates */
|
start_progress_delay(&progress, "Checking %u files out...",
|
||||||
if (total < 250)
|
"", total, 50, 2);
|
||||||
total = 0;
|
|
||||||
|
|
||||||
if (total)
|
|
||||||
start_progress(&progress, "Checking %u files out...",
|
|
||||||
"", total);
|
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user