mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
fix flood lint
This commit is contained in:
parent
aaacf2ea4b
commit
01b55a17f1
@ -31,16 +31,16 @@ export default function Component({ service }) {
|
|||||||
let completed = 0;
|
let completed = 0;
|
||||||
let leech = 0;
|
let leech = 0;
|
||||||
|
|
||||||
for (var torrent in torrentData.torrents) {
|
Object.values(torrentData.torrents).forEach(torrent => {
|
||||||
rateDl += torrentData.torrents[torrent].downRate;
|
rateDl += torrent.downRate;
|
||||||
rateUl += torrentData.torrents[torrent].upRate;
|
rateUl += torrent.upRate;
|
||||||
if(torrentData.torrents[torrent].status.includes('complete')){
|
if(torrent.status.includes('complete')){
|
||||||
completed += 1;
|
completed += 1;
|
||||||
}
|
}
|
||||||
if(torrentData.torrents[torrent].status.includes('downloading')){
|
if(torrent.status.includes('downloading')){
|
||||||
leech += 1;
|
leech += 1;
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user