limit percentages to two decimals

This commit is contained in:
Zach Pomerantz 2016-09-26 19:26:54 -07:00
parent efb71c18a1
commit f40e46ac92

View file

@ -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)"
}
}