Live races ui - Fixed race progress if no leg is started

This commit is contained in:
Benjamin Barth committed 2015-05-20 17:28:11 +02:00
1 parent e7b6d4c911
commit 3cad2559ed
1 file changed
+1 -1
@@ -25,6 +25,6 @@ public class RaceProgressDTO implements IsSerializable {
}
public Double getPercentageProgress() {
return getTotalLegs().doubleValue() * 100.0 / getCurrentLeg().doubleValue();
return getCurrentLeg().doubleValue() * 100.0 / getTotalLegs().doubleValue();
}
}