From f40e46ac9264ac654e40bd0cf12e0beb1c1d43c9 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Mon, 26 Sep 2016 19:26:54 -0700 Subject: [PATCH] limit percentages to two decimals --- scripts/developer/utilities/audio/Stream.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/developer/utilities/audio/Stream.qml b/scripts/developer/utilities/audio/Stream.qml index 71e4b9eedf..602bccc222 100644 --- a/scripts/developer/utilities/audio/Stream.qml +++ b/scripts/developer/utilities/audio/Stream.qml @@ -58,11 +58,11 @@ ColumnLayout { } Value { label: "Overall" - source: stream.lossRate + "% (" + stream.lossCount + " lost)" + source: stream.lossRate.toFixed(2) + "% (" + stream.lossCount + " lost)" } Value { label: "Window" - source: stream.lossRateWindow + "% (" + stream.lossCountWindow + " lost)" + source: stream.lossRateWindow.toFixed(2) + "% (" + stream.lossCountWindow + " lost)" } }