Do this with percentage bar

This commit is contained in:
shamoon 2024-11-24 22:20:02 -08:00
parent 416053c963
commit 98bc4719d9
No known key found for this signature in database

View File

@ -41,7 +41,7 @@ export default function Network({ options, refresh = 1500 }) {
expandedLabel={`${t("common.bbytes", { value: data.network.rx_bytes })} ↓`}
expanded={options.expanded}
wide
percentage="0"
percentage={(100 * data.network.rx_sec) / (data.network.rx_sec + data.network.tx_sec)}
/>
);
}