This commit is contained in:
Bret Comnes
2020-02-13 11:54:18 -07:00
parent 5e6f9848c7
commit f13458cc2d
5 changed files with 24 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ function statsHandler (opts = {}) {
function progressHandler (stats) {
Object.assign(lastStats, stats)
if (!stats.complete || stats.progress < 1) {
if (!stats.complete && stats.progress < 1) {
if (!progressInterval) {
progressInterval = setInterval(logProgress, 500, lastStats)
logProgress(lastStats)