function progress(size) {
    if (!totalSize) return;

    runningTotal += size;
    var newDotCount = Math.round(runningTotal / totalSize * 100 / 5);
    if (newDotCount > 20) newDotCount = 20;
    for (var i = 0; i < newDotCount - dotCount; i++) {
      logger.log('.', true);
    }
    dotCount = newDotCount;
  }
//Should log a dot for every 5% of progress
Should log a dot for every 5% of progress
Should log a dot for every 5% of progress
function progress(size) {
    if (!totalSize) return;
    runningTotal += size;
    var newDotCount = Math.round(runningTotal / totalSize * 100 / 5);
    if (newDotCount > 20) newDotCount = 20;
    for (var i = 0; i < newDotCount - dotCount; i++) {
      logger.log('.', true);
    }
    dotCount = newDotCount;
  }
function progress ( size ) { if ( ! totalSize ) return ; runningTotal += size ; var newDotCount = Math . round ( runningTotal / totalSize * 100 / 5 ) ; if ( newDotCount > 20 ) newDotCount = 20 ; for ( var i = 0 ; i < newDotCount - dotCount ; i ++ ) { logger . log ( '.' , true ) ; } dotCount = newDotCount ; }
Should log a dot for every 5% of progress
Should log a dot for every 5% of progress