Format upload speed
This commit is contained in:
parent
a73e0e675f
commit
124be19e43
1 changed files with 6 additions and 3 deletions
|
|
@ -197,9 +197,12 @@ const Speed: React.FC<{ statsResponse: TorrentStats }> = ({ statsResponse }) =>
|
|||
}
|
||||
|
||||
return <>
|
||||
{!statsResponse.finished && <p>↓ {statsResponse.live.download_speed.human_readable}</p>}
|
||||
<p>↑ {statsResponse.live.upload_speed.human_readable}</p>
|
||||
{statsResponse.live.snapshot.uploaded_bytes > 0 && <p>Uploaded {formatBytes(statsResponse.live.snapshot.uploaded_bytes)}</p>}
|
||||
{!statsResponse.finished &&
|
||||
<div className='download-speed'>↓ {statsResponse.live.download_speed.human_readable}</div>}
|
||||
<div className='upload-speed'>
|
||||
↑ {statsResponse.live.upload_speed.human_readable}
|
||||
{statsResponse.live.snapshot.uploaded_bytes > 0 &&
|
||||
<span> (total {formatBytes(statsResponse.live.snapshot.uploaded_bytes)}</span>})</div>
|
||||
</>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue