|
|
|
@ -146,8 +146,8 @@ class ComputedStat(stat: Stat, value: Double) { |
|
|
|
return TextFormat(value.formattedHourlyDuration()) |
|
|
|
return TextFormat(value.formattedHourlyDuration()) |
|
|
|
} // red/green percentages |
|
|
|
} // red/green percentages |
|
|
|
Stat.WIN_RATIO, Stat.ROI -> { |
|
|
|
Stat.WIN_RATIO, Stat.ROI -> { |
|
|
|
val color = if (value >= this.stat.threshold) R.color.green else R.color.red |
|
|
|
val color = if (value * 100 >= this.stat.threshold) R.color.green else R.color.red |
|
|
|
return TextFormat("${value.formatted()}%", color) |
|
|
|
return TextFormat("${(value * 100).formatted()}%", color) |
|
|
|
} // white amounts |
|
|
|
} // white amounts |
|
|
|
Stat.AVERAGE_BUYIN, Stat.STANDARD_DEVIATION, Stat.STANDARD_DEVIATION_HOURLY, |
|
|
|
Stat.AVERAGE_BUYIN, Stat.STANDARD_DEVIATION, Stat.STANDARD_DEVIATION_HOURLY, |
|
|
|
Stat.STANDARD_DEVIATION_BB_PER_100_HANDS -> { |
|
|
|
Stat.STANDARD_DEVIATION_BB_PER_100_HANDS -> { |
|
|
|
|