Skip to content

Commit

Permalink
Merge pull request #69 from ubports/Flohack74-maintenance
Browse files Browse the repository at this point in the history
Fix percentage text
  • Loading branch information
NeoTheThird authored Jan 1, 2018
2 parents dee3b72 + 44bb5ef commit 59751f0
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 59751f0

Please sign in to comment.