Skip to content

Commit

Permalink
Correct issue
Browse files Browse the repository at this point in the history
big files > 4GB seems overflow in file size #1
  • Loading branch information
Olivier Le Bozec committed Feb 17, 2017
1 parent 247cf26 commit f4085c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions qt_tstools/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ double infoWorker::getGlobalDuration()
////////////////////////////////
// Timestamp worker - base class
timeStampWorker::timeStampWorker(std::string *tsFileName, Chart *chart) :
m_nbProgress(0), m_progress(0), m_chart(chart), m_isRunning(false)
m_nbProgress(0), m_chart(chart), m_isRunning(false)

{

// new drawing
m_Series = new QLineSeries();

Expand Down Expand Up @@ -82,7 +81,8 @@ void timeStampWorker::updateProgress()
m_nbProgress += m_WindowPacket;
if (m_fileSize)
{
double tmp = m_nbProgress*188;
double tmp = m_nbProgress;
tmp *= 188;
tmp *= 100;
tmp /= (double)m_fileSize;
emit updated((int)tmp);
Expand Down
1 change: 0 additions & 1 deletion qt_tstools/thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class timeStampWorker : public QObject, public QRunnable

// used to compute competion rate
unsigned int m_nbProgress;
unsigned int m_progress;
unsigned long long m_fileSize;

// update the competion rate
Expand Down

0 comments on commit f4085c7

Please sign in to comment.