mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
Live races ui - Fixed race progress if no leg is started
This commit is contained in:
1 parent
e7b6d4c911
commit
3cad2559ed
1 file changed
+1
-1
+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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user