Dashboard needs bytes per second, not total.

This commit is contained in:
Roland 2024-08-18 15:24:35 -06:00
parent 317f3f3dfb
commit 7f8b294199
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -133,7 +133,7 @@ export function BandwidthProgressGroup({bandwidth, ...props}) {
export function BandwidthProgressCombined({bandwidth, ...props}) {
const maxBytes = bandwidth['speed'] ? bandwidth['speed'] * 1000 * 1000 / 8 : 125_000_000;
const combined = bandwidth['bytes_recv'] + bandwidth['bytes_sent']
const combined = bandwidth['bytes_recv_ps'] + bandwidth['bytes_sent_ps'];
return <BandwidthProgress label={bandwidth['name']} bytes={combined} maxBytes={maxBytes} {...props}/>
}