summaryrefslogtreecommitdiff
path: root/vdrmanager/src/de/bjusystems
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-10-27 10:26:22 +0100
committerlado <herrlado@gmail.com>2013-10-27 10:26:22 +0100
commit04c18d7f0f28f976cca05601a154b3bc941fdb1f (patch)
treee5c3479a966eea022cfb2106005cc24410c55bc7 /vdrmanager/src/de/bjusystems
parent4cf0feac2e8582a0073a6a80bc2fe4f194b1f423 (diff)
downloadvdr-manager-04c18d7f0f28f976cca05601a154b3bc941fdb1f.tar.gz
vdr-manager-04c18d7f0f28f976cca05601a154b3bc941fdb1f.tar.bz2
fixed free vs used
Diffstat (limited to 'vdrmanager/src/de/bjusystems')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
index 9669be7..187042c 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/RecordingListActivity.java
@@ -20,7 +20,6 @@ import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemLongClickListener;
-import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import de.bjusystems.vdrmanager.R;
@@ -78,7 +77,7 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
private int totalMB = -1;
- private int usedMB = -1;
+ private int freeMB = -1;
private int percent = -1;
@@ -492,10 +491,10 @@ public class RecordingListActivity extends BaseEventListActivity<Recording>
}
totalMB = Integer.valueOf(split[0]);
- usedMB = Integer.valueOf(split[1]);
+ freeMB = Integer.valueOf(split[1]);
percent = Integer.valueOf(split[2]);
driverInfoContainer.setVisibility(View.VISIBLE);
- driverInfo.setText(getString(R.string.drive_info, (totalMB - usedMB) / 1024, totalMB / 1024, percent));
+ driverInfo.setText(getString(R.string.drive_info, (freeMB) / 1024, totalMB / 1024, 100 - percent));
} catch (Exception ex) {
Log.w(TAG, ex.getMessage(), ex);
}