author | schurig <schurig> | 2004-09-10 06:10:18 (UTC) |
---|---|---|
committer | schurig <schurig> | 2004-09-10 06:10:18 (UTC) |
commit | 931d699302619ac6472aca4b893d8a8bd188f040 (patch) (unidiff) | |
tree | 01c9d454e79d88124714f1ec1ce07b9f08117d0a /noncore/settings/sysinfo/benchmarkinfo.cpp | |
parent | 317734f41201bf25fa3a1b38c2867bb9557053b9 (diff) | |
download | opie-931d699302619ac6472aca4b893d8a8bd188f040.zip opie-931d699302619ac6472aca4b893d8a8bd188f040.tar.gz opie-931d699302619ac6472aca4b893d8a8bd188f040.tar.bz2 |
disable SD and CF speed test on MNCI
change millibit to MegaByte (mb -> MB)
change kilobit to Kilobyte (kb -> kB)
Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/benchmarkinfo.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index 8497c8b..47be13c 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp | |||
@@ -116,5 +116,6 @@ BenchmarkInfo::BenchmarkInfo( QWidget *parent, const char *name, int wFlags ) | |||
116 | test_ram = new OCheckListItem( tests, tr( "5. RAM Performance " ), OCheckListItem::CheckBox ); | 116 | test_ram = new OCheckListItem( tests, tr( "5. RAM Performance " ), OCheckListItem::CheckBox ); |
117 | #ifndef QT_QWS_RAMSES | ||
117 | test_sd = new OCheckListItem( tests, tr( "6. SD Card Performance " ), OCheckListItem::CheckBox ); | 118 | test_sd = new OCheckListItem( tests, tr( "6. SD Card Performance " ), OCheckListItem::CheckBox ); |
118 | test_cf = new OCheckListItem( tests, tr( "7. CF Card Performance " ), OCheckListItem::CheckBox ); | 119 | test_cf = new OCheckListItem( tests, tr( "7. CF Card Performance " ), OCheckListItem::CheckBox ); |
119 | 120 | #endif | |
120 | test_alu->setText( 1, "n/a" ); | 121 | test_alu->setText( 1, "n/a" ); |
@@ -124,5 +125,6 @@ BenchmarkInfo::BenchmarkInfo( QWidget *parent, const char *name, int wFlags ) | |||
124 | test_ram->setText( 1, "n/a" ); | 125 | test_ram->setText( 1, "n/a" ); |
126 | #ifndef QT_QWS_RAMSES | ||
125 | test_sd->setText( 1, "n/a" ); | 127 | test_sd->setText( 1, "n/a" ); |
126 | test_cf->setText( 1, "n/a" ); | 128 | test_cf->setText( 1, "n/a" ); |
127 | 129 | #endif | |
128 | test_alu->setText( 2, "n/a" ); | 130 | test_alu->setText( 2, "n/a" ); |
@@ -132,4 +134,6 @@ BenchmarkInfo::BenchmarkInfo( QWidget *parent, const char *name, int wFlags ) | |||
132 | test_ram->setText( 2, "n/a" ); | 134 | test_ram->setText( 2, "n/a" ); |
135 | #ifndef QT_QWS_RAMSES | ||
133 | test_sd->setText( 2, "n/a" ); | 136 | test_sd->setText( 2, "n/a" ); |
134 | test_cf->setText( 2, "n/a" ); | 137 | test_cf->setText( 2, "n/a" ); |
138 | #endif | ||
135 | 139 | ||
@@ -184,4 +188,6 @@ void BenchmarkInfo::machineActivated( int index ) | |||
184 | test_ram->setText( 2, *(it++) ); | 188 | test_ram->setText( 2, *(it++) ); |
189 | #ifndef QT_QWS_RAMSES | ||
185 | test_sd->setText( 2, *(it++) ); | 190 | test_sd->setText( 2, *(it++) ); |
186 | test_cf->setText( 2, *(it++) ); | 191 | test_cf->setText( 2, *(it++) ); |
192 | #endif | ||
187 | } | 193 | } |
@@ -220,3 +226,3 @@ void BenchmarkInfo::run() | |||
220 | int value = gfxRendering( TEST_DURATION ); | 226 | int value = gfxRendering( TEST_DURATION ); |
221 | test_gfx->setText( 1, QString().sprintf( "%.2f gops/sec", value / 4 / TEST_DURATION ) ); // 4 tests | 227 | test_gfx->setText( 1, QString().sprintf( "%.2f gops/sec", value / 4.0 / TEST_DURATION ) ); // 4 tests |
222 | test_gfx->setOn( false ); | 228 | test_gfx->setOn( false ); |
@@ -229,2 +235,3 @@ void BenchmarkInfo::run() | |||
229 | 235 | ||
236 | #ifndef QT_QWS_RAMSES | ||
230 | if ( test_cf->isOn() ) | 237 | if ( test_cf->isOn() ) |
@@ -240,2 +247,3 @@ void BenchmarkInfo::run() | |||
240 | } | 247 | } |
248 | #endif | ||
241 | 249 | ||
@@ -387,3 +395,3 @@ void BenchmarkInfo::performFileTest( const QString& fname, OCheckListItem* item | |||
387 | double readSpeed = FILE_TEST_COUNT / ( read / 1000.0 ); | 395 | double readSpeed = FILE_TEST_COUNT / ( read / 1000.0 ); |
388 | QString readUnit = "kb/s"; | 396 | QString readUnit = "kB/s"; |
389 | if ( readSpeed > 1024 ) | 397 | if ( readSpeed > 1024 ) |
@@ -391,3 +399,3 @@ void BenchmarkInfo::performFileTest( const QString& fname, OCheckListItem* item | |||
391 | readSpeed = readSpeed / 1024.0; | 399 | readSpeed = readSpeed / 1024.0; |
392 | readUnit = "mb/s"; | 400 | readUnit = "MB/s"; |
393 | } | 401 | } |
@@ -398,3 +406,3 @@ void BenchmarkInfo::performFileTest( const QString& fname, OCheckListItem* item | |||
398 | writeSpeed = writeSpeed / 1024.0; | 406 | writeSpeed = writeSpeed / 1024.0; |
399 | writeUnit = "mb/s"; | 407 | writeUnit = "MBb/s"; |
400 | } | 408 | } |