From d94cfa097baa91e031ad8072c088ea0fb3512d89 Mon Sep 17 00:00:00 2001 From: softworkz Date: Wed, 27 Jul 2016 02:43:27 +0200 Subject: [PATCH] Fix incorrect bitrate calculation and correct unit of sample rate --- dashboard-ui/scripts/itemdetailpage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index fe7bdfadcc..43fbfadbd5 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1608,11 +1608,11 @@ } if (stream.BitRate && stream.Codec != "mjpeg") { - attributes.push(createAttribute(Globalize.translate('MediaInfoBitrate'), (parseInt(stream.BitRate / 1024)) + ' kbps')); + attributes.push(createAttribute(Globalize.translate('MediaInfoBitrate'), (parseInt(stream.BitRate / 1000)) + ' kbps')); } if (stream.SampleRate) { - attributes.push(createAttribute(Globalize.translate('MediaInfoSampleRate'), stream.SampleRate + ' khz')); + attributes.push(createAttribute(Globalize.translate('MediaInfoSampleRate'), stream.SampleRate + ' Hz')); } if (stream.BitDepth) {