From 185ba21e0fb44bf092390edd3ab38a941c2f3e20 Mon Sep 17 00:00:00 2001 From: 0xb00bface <0xboobface@gmail.com> Date: Sat, 30 Jan 2021 13:11:29 +0100 Subject: [PATCH] Fix throughtput calculation in web ui --- server/src/main/resources/html/static/recordings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/resources/html/static/recordings.js b/server/src/main/resources/html/static/recordings.js index f41a28e7..00dadfc1 100644 --- a/server/src/main/resources/html/static/recordings.js +++ b/server/src/main/resources/html/static/recordings.js @@ -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)