SponsorBlock: Fixed rounding issue when marking segments
This commit is contained in:
parent
62b109171c
commit
844dc53220
1 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@ public class SeekBarMarker {
|
|||
public double percentStart;
|
||||
public double percentEnd;
|
||||
public int color;
|
||||
public Object tag;
|
||||
|
||||
public SeekBarMarker(final double startTime,
|
||||
final double endTime,
|
||||
|
@ -14,8 +13,8 @@ public class SeekBarMarker {
|
|||
final int color) {
|
||||
this.startTime = startTime;
|
||||
this.endTime = endTime;
|
||||
this.percentStart = Math.round((startTime / maxTime) * 100.0) / 100.0;
|
||||
this.percentEnd = Math.round((endTime / maxTime) * 100.0) / 100.0;
|
||||
this.percentStart = ((startTime / maxTime) * 100.0) / 100.0;
|
||||
this.percentEnd = ((endTime / maxTime) * 100.0) / 100.0;
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue