server: Transmission: properly report percentComplete of content

This commit is contained in:
Jesse Chan
2020-12-05 22:25:45 +08:00
parent dbc0211a99
commit 00f113b379
@@ -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,
};