diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-10-14 21:51:24 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-10-14 21:51:24 -0700 |
commit | 7702914ee1031afdc9e34d32de438af34d75f478 (patch) | |
tree | f1fc91075f32c7b872962ae1de8a3a548c8684e9 /src | |
parent | cfa5d8da1ae4a70112d7b4ee0d2e7257e3e2d4d0 (diff) | |
download | dsub-7702914ee1031afdc9e34d32de438af34d75f478.tar.gz dsub-7702914ee1031afdc9e34d32de438af34d75f478.tar.bz2 dsub-7702914ee1031afdc9e34d32de438af34d75f478.zip |
Fixed bitrate calculation being in bytes instead of bits
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java index 9ecaa0e9..68ca5189 100644 --- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java +++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java @@ -1202,7 +1202,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR } else {
// Otherwise do a calculation for it
// Divide by 1000 so in kbps
- bitrate = (size / duration) / 1000;
+ bitrate = (int) (size / duration) / 1000 * 8;
}
if(Util.isOffline(context)) {
|