summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/benchmarkinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp
index fde032a..793fcb1 100644
--- a/noncore/settings/sysinfo/benchmarkinfo.cpp
+++ b/noncore/settings/sysinfo/benchmarkinfo.cpp
@@ -382,27 +382,27 @@ void BenchmarkInfo::performFileTest( const QString& fname, OCheckListItem* item
382 { 382 {
383 read = time.elapsed(); 383 read = time.elapsed();
384 } 384 }
385 else 385 else
386 { 386 {
387 item->setText( 1, tr( "error" ) ); 387 item->setText( 1, tr( "error" ) );
388 return; 388 return;
389 } 389 }
390 390
391 QFile::remove( filename ); 391 QFile::remove( filename );
392 double readSpeed = FILE_TEST_COUNT / ( read / 1000.0 ); 392 double readSpeed = FILE_TEST_COUNT / ( read / 1000.0 );
393 QString readUnit = "kB/s"; 393 QString readUnit = "kB/s";
394 if ( readSpeed > 1024 ) 394 if ( readSpeed > 1024 )
395 { 395 {
396 readSpeed /= 1024.0; 396 readSpeed /= 1024.0;
397 readUnit = "MB/s"; 397 readUnit = "MB/s";
398 } 398 }
399 double writeSpeed = FILE_TEST_COUNT / ( write / 1000.0 ); 399 double writeSpeed = FILE_TEST_COUNT / ( write / 1000.0 );
400 QString writeUnit = "kb/s"; 400 QString writeUnit = "kb/s";
401 if ( writeSpeed > 1024 ) 401 if ( writeSpeed > 1024 )
402 { 402 {
403 writeSpeed /= 1024.0; 403 writeSpeed /= 1024.0;
404 writeUnit = "MB/s"; 404 writeUnit = "MB/s";
405 } 405 }
406 item->setText( 1, QString().sprintf( "%.2f %s, %.2f %s", readSpeed, readUnit.latin1(), writeSpeed, writeUnit.latin1() ) ); 406 item->setText( 1, QString().sprintf( "%.2f %s; %.2f %s", readSpeed, readUnit.latin1(), writeSpeed, writeUnit.latin1() ) );
407 item->setOn( false ); 407 item->setOn( false );
408} 408}