Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

int copyThread::getProgressionPercent ( const int  max = 100 ) [slot]

return the progression percent

maxthe return value it should be beteen 0 and max value
the file progression

Definition at line 632 of file CopyThread.cpp.

References totalCopiedSize.

Referenced by Main_window::updateTheCopyStat().

      qint64 sourcePos=totalCopiedSize-currentFileTotPos;
      if(currentFileSize<=0 || sourcePos>currentFileSize)
            return 0;
      return (int)((sourcePos*max)/currentFileSize);

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index