From 7702914ee1031afdc9e34d32de438af34d75f478 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 14 Oct 2014 21:51:24 -0700 Subject: Fixed bitrate calculation being in bytes instead of bits --- src/github/daneren2005/dsub/fragments/SubsonicFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) { -- cgit v1.2.3