Skip to content

Commit

Permalink
feat: divide normalized torrent progress by 100 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Jun 6, 2022
1 parent ac44187 commit 3fd129b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build:docs": "typedoc",
"test": "vitest run",
"test:watch": "vitest",
"test:ci": "vitest run --coverage --reporter=junit --outputFile=./junit.xml"
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
},
"dependencies": {
"@ctrl/magnet-link": "^3.1.1",
Expand All @@ -44,7 +44,7 @@
"p-wait-for": "4.1.0",
"typedoc": "0.22.17",
"typescript": "4.7.3",
"vitest": "0.14.0"
"vitest": "0.14.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/deluge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ export class Deluge implements TorrentClient {
state,
isCompleted,
stateMessage: torrent.state,
progress: torrent.progress,
progress: torrent.progress / 100,
ratio: torrent.ratio,
dateAdded,
dateCompleted: undefined,
Expand Down

0 comments on commit 3fd129b

Please sign in to comment.