We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141d873 commit b72f170Copy full SHA for b72f170
analysis/analysisrunner.cpp
@@ -93,7 +93,8 @@ void AnalysisRunner::run()
93
}
94
else if (is_fastq(&rawFile))
95
{
96
- file = &rawFile;
+ rawFile.close();
97
+ file = new QFile(mFilename);
98
99
100
if (file == nullptr)
@@ -144,7 +145,7 @@ void AnalysisRunner::run()
144
145
// this is critcal and can decrease the speed. Send message only 1 sequence / 1000
146
if (mSequenceCount % 1000 == 0)
147
- int percentNow = (float)(rawFile.pos()) / fileInfo.size() * 100;
148
+ int percentNow = qRound(static_cast<qreal>(file->pos()) / fileInfo.size() * 100);
149
// if percentNow is still null, return empty percent ...
150
if ( (percentNow >= mProgression + 5) || (percentNow == 0))
151
0 commit comments