From 44bb5ef3b849d978df2b43c9f8a67a5d29f3fbe5 Mon Sep 17 00:00:00 2001 From: Flohack74 Date: Mon, 1 Jan 2018 17:02:42 +0100 Subject: [PATCH] Fix percentage text --- build.js | 2 +- cli.js | 2 +- src/devices.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.js b/build.js index 25f98482..ba9e2823 100755 --- a/build.js +++ b/build.js @@ -41,7 +41,7 @@ const setEvents = (downloadEvent) => { console.log(`Downloading next file, ${i} left`); }); downloadEvent.on("download:progress", (i) => { - process.stdout.write(`Downloading file, ${Math.ceil(i.percent*100)}% left\r`); + process.stdout.write(`Downloading file, ${Math.ceil(i.percent*100)}% complete\r`); }); } diff --git a/cli.js b/cli.js index 8ceb32c4..82f7a215 100755 --- a/cli.js +++ b/cli.js @@ -49,7 +49,7 @@ const setEvents = (downloadEvent) => { console.log(`Downloading next file, ${i} left`); }); downloadEvent.on("download:progress", (i) => { - process.stdout.write(`Downloading file, ${Math.ceil(i.percent*100)}% left\r`); + process.stdout.write(`Downloading file, ${Math.ceil(i.percent*100)}% complete\r`); }); downloadEvent.on("adbpush:done", () => { console.log("Done pusing files"); diff --git a/src/devices.js b/src/devices.js index e60e43a8..b2908ed9 100644 --- a/src/devices.js +++ b/src/devices.js @@ -260,7 +260,7 @@ var setEvents = (downloadEvent) => { downloadEvent.emit("user:write:next", "Downloading", i, t); }); downloadEvent.on("download:progress", (i) => { - utils.log.info(`Downloading file, ${Math.ceil(i.percent*100)}% left`); + utils.log.info(`Downloading file, ${Math.ceil(i.percent*100)}% complete`); downloadEvent.emit("user:write:progress", Math.ceil(i.percent*100)); }); downloadEvent.on("adbpush:done", () => {