aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-10-14 21:51:24 -0700
committerScott Jackson <daneren2005@gmail.com>2014-10-14 21:51:24 -0700
commit7702914ee1031afdc9e34d32de438af34d75f478 (patch)
treef1fc91075f32c7b872962ae1de8a3a548c8684e9
parentcfa5d8da1ae4a70112d7b4ee0d2e7257e3e2d4d0 (diff)
downloaddsub-7702914ee1031afdc9e34d32de438af34d75f478.tar.gz
dsub-7702914ee1031afdc9e34d32de438af34d75f478.tar.bz2
dsub-7702914ee1031afdc9e34d32de438af34d75f478.zip
Fixed bitrate calculation being in bytes instead of bits
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java2
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)) {