Reduced console display on loading lots of files with zstd --train. Reported by @KrzysFR, see #177

This commit is contained in:
Yann Collet
2016-05-09 04:44:45 +02:00
parent e1a69a88c0
commit f6ca09b5ff
5 changed files with 31 additions and 21 deletions
+2 -3
View File
@@ -95,7 +95,6 @@ extern "C" {
#endif
/*-****************************************
* Utility functions
******************************************/
@@ -116,8 +115,8 @@ UTIL_STATIC void UTIL_waitForNextTick(UTIL_time_t ticksPerSecond)
(void)ticksPerSecond;
UTIL_getTime(clockStart);
do {
UTIL_getTime(clockEnd);
do {
UTIL_getTime(clockEnd);
} while (UTIL_getSpanTimeNano(ticksPerSecond, clockStart, clockEnd) == 0);
}