diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-07-15 18:13:31 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-07-15 18:13:31 +0000 |
commit | 21a38713a685e04ab1533f487244f2dc2197e01c (patch) | |
tree | aa397ae3fd081edd5225c9142fd35cbed4bb88c3 /rbutil/rbutilqt/sysinfo.cpp | |
parent | cad91ed938049037a57e9bcc4c5ad63e45dbc2e6 (diff) | |
download | rockbox-21a38713a685e04ab1533f487244f2dc2197e01c.tar.gz rockbox-21a38713a685e04ab1533f487244f2dc2197e01c.zip |
Show the total size of the volume along with the free space.
This should help identifying the correct player by size, since the free space
is only useful to figure if there is enough space to install Rockbox. Change
units to GiB since that is more useful given the size of current devices.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30139 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/sysinfo.cpp')
-rw-r--r-- | rbutil/rbutilqt/sysinfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/sysinfo.cpp b/rbutil/rbutilqt/sysinfo.cpp index a9fa5999b7..a28a9bb812 100644 --- a/rbutil/rbutilqt/sysinfo.cpp +++ b/rbutil/rbutilqt/sysinfo.cpp | |||
@@ -63,9 +63,10 @@ QString Sysinfo::getInfo() | |||
63 | info += "<b>" + tr("Filesystem") + "</b><br/>"; | 63 | info += "<b>" + tr("Filesystem") + "</b><br/>"; |
64 | QStringList drives = Autodetection::mountpoints(); | 64 | QStringList drives = Autodetection::mountpoints(); |
65 | for(int i = 0; i < drives.size(); i++) { | 65 | for(int i = 0; i < drives.size(); i++) { |
66 | info += tr("%1, %2 MiB available") | 66 | info += tr("%1, %2 GiB of %3 GiB available") |
67 | .arg(QDir::toNativeSeparators(drives.at(i))) | 67 | .arg(QDir::toNativeSeparators(drives.at(i))) |
68 | .arg(Utils::filesystemFree(drives.at(i)) / (1024*1024)); | 68 | .arg((double)Utils::filesystemFree(drives.at(i)) / (1<<30), 0, 'f', 2) |
69 | .arg((double)Utils::filesystemTotal(drives.at(i)) / (1<<30), 0, 'f', 2); | ||
69 | if(i + 1 < drives.size()) | 70 | if(i + 1 < drives.size()) |
70 | info += "<br/>"; | 71 | info += "<br/>"; |
71 | } | 72 | } |