Skip to content

Commit 3fd129b

Browse files
authored
feat: divide normalized torrent progress by 100 (#107)
1 parent ac44187 commit 3fd129b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Diff for: package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:docs": "typedoc",
2626
"test": "vitest run",
2727
"test:watch": "vitest",
28-
"test:ci": "vitest run --coverage --reporter=junit --outputFile=./junit.xml"
28+
"test:ci": "vitest run --coverage --reporter=default --reporter=junit --outputFile=./junit.xml"
2929
},
3030
"dependencies": {
3131
"@ctrl/magnet-link": "^3.1.1",
@@ -44,7 +44,7 @@
4444
"p-wait-for": "4.1.0",
4545
"typedoc": "0.22.17",
4646
"typescript": "4.7.3",
47-
"vitest": "0.14.0"
47+
"vitest": "0.14.1"
4848
},
4949
"publishConfig": {
5050
"access": "public"

Diff for: src/deluge.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export class Deluge implements TorrentClient {
699699
state,
700700
isCompleted,
701701
stateMessage: torrent.state,
702-
progress: torrent.progress,
702+
progress: torrent.progress / 100,
703703
ratio: torrent.ratio,
704704
dateAdded,
705705
dateCompleted: undefined,

0 commit comments

Comments
 (0)