Skip to content

Commit

Permalink
Prevent div by 0 for RM skin
Browse files Browse the repository at this point in the history
  • Loading branch information
kc1r74p committed Mar 2, 2021
1 parent e8d7bf4 commit 92b228e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ZWIFT_RM_SKIN/Bar.ini
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0."

[Measure1Calc]
Measure=Calc
Formula=100-((MeasureMax-Measure1)/(MeasureMax-MeasureMin)) * 100 + 5
Formula=100-((MeasureMax-Measure1)/(MeasureMax-MeasureMin+1)) * 100 + 5
MinValue=0
MaxValue=100

Expand Down Expand Up @@ -207,7 +207,7 @@ Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0."

[Measure2Calc]
Measure=Calc
Formula=100-((MeasureMax-Measure2)/(MeasureMax-MeasureMin)) * 100 + 5
Formula=100-((MeasureMax-Measure2)/(MeasureMax-MeasureMin+1)) * 100 + 5
MinValue=0
MaxValue=100

Expand Down Expand Up @@ -262,7 +262,7 @@ Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0."

[Measure3Calc]
Measure=Calc
Formula=100 - ((MeasureMax-Measure3)/(MeasureMax-MeasureMin)) * 100 + 5
Formula=100 - ((MeasureMax-Measure3)/(MeasureMax-MeasureMin+1)) * 100 + 5
MinValue=0
MaxValue=100

Expand Down Expand Up @@ -317,7 +317,7 @@ Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0."

[Measure4Calc]
Measure=Calc
Formula=100 - ((MeasureMax-Measure4)/(MeasureMax-MeasureMin)) * 100 + 5
Formula=100 - ((MeasureMax-Measure4)/(MeasureMax-MeasureMin+1)) * 100 + 5
MinValue=0
MaxValue=100

Expand Down Expand Up @@ -371,7 +371,7 @@ Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0."

[Measure5Calc]
Measure=Calc
Formula=100 - ((MeasureMax-Measure5)/(MeasureMax-MeasureMin)) * 100 + 5
Formula=100 - ((MeasureMax-Measure5)/(MeasureMax-MeasureMin+1)) * 100 + 5
MinValue=0
MaxValue=100

Expand Down

0 comments on commit 92b228e

Please sign in to comment.