mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-11 23:58:46 +00:00
Fix linting errors
This commit is contained in:
parent
95b6ea0e23
commit
b19b4f047e
2 changed files with 16 additions and 15 deletions
|
@ -28,16 +28,17 @@ export default function Transmission({ service }) {
|
|||
);
|
||||
}
|
||||
|
||||
const torrents = torrentData.arguments.torrents;
|
||||
const { torrents } = torrentData.arguments;
|
||||
let rateDl = 0;
|
||||
let rateUl = 0;
|
||||
let completed = 0;
|
||||
|
||||
for (let torrent of torrents) {
|
||||
for (let i = 0; i < torrents.length; i += 1) {
|
||||
const torrent = torrents[i];
|
||||
rateDl += torrent.rateDownload;
|
||||
rateUl += torrent.rateUpload;
|
||||
if (torrent.percentDone === 1) {
|
||||
completed++;
|
||||
completed += 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue