diff options
Diffstat (limited to 'src/plugins/perfprofiler/perfprofilertracemanager.cpp')
-rw-r--r-- | src/plugins/perfprofiler/perfprofilertracemanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/perfprofiler/perfprofilertracemanager.cpp b/src/plugins/perfprofiler/perfprofilertracemanager.cpp index 7a3643660c1..609112f8232 100644 --- a/src/plugins/perfprofiler/perfprofilertracemanager.cpp +++ b/src/plugins/perfprofiler/perfprofilertracemanager.cpp @@ -605,9 +605,11 @@ void PerfProfilerTraceManager::loadFromPerfData(const FilePath &filePath, const int fileMegabytes = static_cast<int>( qMin(filePath.fileSize() >> 20, static_cast<qint64>(std::numeric_limits<int>::max()))); - Core::FutureProgress *fp = Core::ProgressManager::addTimedTask( - reader->future(), Tr::tr("Loading Trace Data"), Constants::PerfProfilerTaskLoadPerf, - fileMegabytes); + Core::FutureProgress *fp + = Core::ProgressManager::addTimedTask(reader->future(), + Tr::tr("Loading Trace Data"), + Constants::PerfProfilerTaskLoadPerf, + std::chrono::seconds(fileMegabytes)); connect(fp, &Core::FutureProgress::canceled, reader, [reader]() { reader->stopParser(); |