diff options
-rw-r--r-- | src/copythread.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/copythread.cpp b/src/copythread.cpp index ffec902..21aadbb 100644 --- a/src/copythread.cpp +++ b/src/copythread.cpp @@ -42,16 +42,12 @@ void CopyThread::run() // Sequential read emit logMessage(tr("Starting sequential read test")); - if (size > 0) { - _file->seek(BIGRAND % size); - } timer.start(); do { ret = _file->read(buffer, BUFFER_SIZE); seqSum += ret; - if (ret == 0) { - _file->seek(0); - } + if (ret == 0) + break; // EOF } while (!_doStop && ret >= 0 && timer.elapsed() < TEST_LENGTH); seqTime = timer.elapsed(); |