mirror of
https://github.com/zoriya/flood.git
synced 2026-06-08 04:41:03 +00:00
server: Transmission: properly report percentComplete of content
This commit is contained in:
@@ -139,7 +139,7 @@ class TransmissionClientGatewayService extends ClientGatewayService {
|
||||
index,
|
||||
path: file.name,
|
||||
filename: file.name.split('/').pop() as string,
|
||||
percentComplete: file.bytesCompleted / file.length,
|
||||
percentComplete: (file.bytesCompleted / file.length) * 100,
|
||||
priority,
|
||||
sizeBytes: file.length,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user