diff --git a/main.ts b/main.ts index 595dcac..149360b 100644 --- a/main.ts +++ b/main.ts @@ -134,7 +134,7 @@ autoUpdater.on('update-not-available', (event) => { autoUpdater.on('download-progress', (progressObj) => { const downloadSpeed = Math.round((progressObj.bytesPerSecond / 1024) * 100) / 100; - const downloadPercentage = progressObj.percent; + const downloadPercentage = progressObj.percent.toFixed(2); const downloadTransferred = progressObj.transferred; const downloadTotal = progressObj.total; win.webContents.send('download_progress', { diff --git a/package.json b/package.json index f1e7cdf..b15d1be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NovelScraper", - "version": "2.0.4", + "version": "2.0.5", "description": "App for downloading novels from pirate sites.", "homepage": "https://github.com/HanaDigital/NovelScraper", "author": { diff --git a/src/app/pages/novel/novel.component.html b/src/app/pages/novel/novel.component.html index f997c2c..fc5a5af 100644 --- a/src/app/pages/novel/novel.component.html +++ b/src/app/pages/novel/novel.component.html @@ -2,7 +2,11 @@