Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Change downloadSpeed to int (#59)
Browse files Browse the repository at this point in the history
The downloadSpeed property stores the speed in bytes per second,
which will always be an integer. Yet, the value was being stored
as a float. This commit fixes this issue.
  • Loading branch information
getsnoopy authored and se-bastiaan committed Jan 14, 2020
1 parent 180c1a1 commit 476e935
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public class StreamStatus {
public final float progress;
public final int bufferProgress;
public final int seeds;
public final float downloadSpeed;
public final int downloadSpeed;

StreamStatus(float progress, int bufferProgress, int seeds, int downloadSpeed) {
this.progress = progress;
this.bufferProgress = bufferProgress;
this.seeds = seeds;
this.downloadSpeed = downloadSpeed;
}
}
}

0 comments on commit 476e935

Please sign in to comment.