This commit is contained in:
Bret Comnes
2020-02-13 11:46:12 -07:00
parent 1638c39428
commit fad2c4a165
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) {
if (!stats.complete || stats.progress < 1) {
if (!progressInterval) {
progressInterval = setInterval(logProgress, 500, lastStats)
logProgress(lastStats)