From 1891f768bb306766cb49908e8141a774103df22a Mon Sep 17 00:00:00 2001 From: Joe Hand Date: Fri, 3 Feb 2017 10:52:01 -0800 Subject: [PATCH] standard --- lib/ui/import-progress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/import-progress.js b/lib/ui/import-progress.js index 69aa7fc..d754dd6 100644 --- a/lib/ui/import-progress.js +++ b/lib/ui/import-progress.js @@ -10,6 +10,6 @@ module.exports = function () { var importedFiles = importer.fileCount - 1 // counted before import finishes so -1 TODO: fix? var speed = importer.bytesImported * 1000 / (Date.now() - start) var progress = Math.round(importedBytes * 100 / importer.countStats.bytes) - return bar(progress) + ` ${importedFiles} of ${importer.countStats.files } ${importer.countStats.files === 1 ? 'file' : 'files'}` + ' (' + prettyBytes(speed) + '/s' + ')' + return bar(progress) + ` ${importedFiles} of ${importer.countStats.files} ${importer.countStats.files === 1 ? 'file' : 'files'}` + ' (' + prettyBytes(speed) + '/s' + ')' } }