Fix throughtput calculation in web ui

This commit is contained in:
0xb00bface 2021-01-30 13:11:29 +01:00
parent 73eb13944c
commit 185ba21e0f
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ function updateDiskSpace() {
space.text(calculateSize(data.spaceFree) + ' / ' + calculateSize(data.spaceTotal));
throughput.bytes(data.throughput);
throughput.timeframe(data.throughputTimeframe);
let bytesPerSecond = data.throughput / data.throughputTimeframe;
let bytesPerSecond = data.throughput / data.throughputTimeframe * 1000;
throughput.text(calculateSize(bytesPerSecond) + '/s');
} else {
if (console)