Skip to content

Commit

Permalink
Fix percentage text
Browse files Browse the repository at this point in the history
  • Loading branch information
Flohack74 committed Jan 1, 2018
1 parent dee3b72 commit 44bb5ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
});
}

Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit 44bb5ef

Please sign in to comment.