summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-20 19:24:20 (UTC)
committer llornkcor <llornkcor>2002-07-20 19:24:20 (UTC)
commit2ba2f7293e6b7b7b54e733ff84e0b57f0dbc3dfc (patch) (unidiff)
tree54721319a2e07ebda9def3f139f7302c64fef886
parent8c335cfdfffede8b7a864566ec4d9507a2978684 (diff)
downloadopie-2ba2f7293e6b7b7b54e733ff84e0b57f0dbc3dfc.zip
opie-2ba2f7293e6b7b7b54e733ff84e0b57f0dbc3dfc.tar.gz
opie-2ba2f7293e6b7b7b54e733ff84e0b57f0dbc3dfc.tar.bz2
ok, here ya go.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/storage.cpp26
1 files changed, 10 insertions, 16 deletions
diff --git a/noncore/settings/sysinfo/storage.cpp b/noncore/settings/sysinfo/storage.cpp
index f76fbdb..b369ff1 100644
--- a/noncore/settings/sysinfo/storage.cpp
+++ b/noncore/settings/sysinfo/storage.cpp
@@ -220,20 +220,14 @@ void FileSystem::update()
220{ 220{
221#if defined(_OS_LINUX_) || defined(Q_OS_LINUX) 221#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
222 struct statfs fs; 222 struct statfs fs;
223 if ( !statfs( fspath.latin1(), &fs ) ) { 223 if ( !statfs( fspath.latin1(), &fs ) ) {
224 if( fspath.left(8) == "/mnt/ram") { //ugly hack openzaurus 224 blkSize = fs.f_bsize;
225 blkSize = fs.f_bsize; 225 totalBlks = fs.f_blocks;
226 totalBlks = fs.f_blocks; 226 availBlks = fs.f_bavail;
227 availBlks = fs.f_ffree; 227 } else {
228 } else { 228 blkSize = 0;
229 blkSize = fs.f_bsize; 229 totalBlks = 0;
230 totalBlks = fs.f_blocks; 230 availBlks = 0;
231 availBlks = fs.f_bavail; 231 }
232 }
233 } else {
234 blkSize = 0;
235 totalBlks = 0;
236 availBlks = 0;
237 }
238#endif 232#endif
239} 233}