API: torrents: calculate the Duration object in frontend

This commit is contained in:
Jesse Chan
2020-11-01 22:21:54 +08:00
parent 790f8213ae
commit 01dcf81b48
6 changed files with 15 additions and 17 deletions
+2 -1
View File
@@ -36,7 +36,8 @@ export interface TorrentProperties {
directory: string;
downRate: number;
downTotal: number;
eta: -1 | Duration;
// Torrent ETA (seconds), -1 means infinity
eta: number;
hash: string;
isMultiFile: boolean;
isPrivate: boolean;