File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -718,14 +718,12 @@ void PropagateUploadFileCommon::commonErrorHandling(AbstractNetworkJob *job)
718
718
719
719
void PropagateUploadFileCommon::adjustLastJobTimeout (AbstractNetworkJob *job, qint64 fileSize)
720
720
{
721
+ constexpr auto maximumTimeout = qint64 (120 * 60 * 1000 );
721
722
constexpr double threeMinutes = 3.0 * 60 * 1000 ;
722
723
723
- job->setTimeout (qBound (
724
- job->timeoutMsec (),
725
- // Calculate 3 minutes for each gigabyte of data
726
- qRound64 (threeMinutes * fileSize / 1e9 ),
727
- // Maximum of 30 minutes
728
- static_cast <qint64>(30 * 60 * 1000 )));
724
+ job->setTimeout (qBound (job->timeoutMsec (),
725
+ qRound64 (threeMinutes * fileSize / 1e9 ) /* Calculate 3 minutes for each gigabyte of data*/ ,
726
+ maximumTimeout));
729
727
}
730
728
731
729
void PropagateUploadFileCommon::slotJobDestroyed (QObject *job)
You can’t perform that action at this time.
0 commit comments