forked from qt-creator/qt-creator
CppTools: Fix comparing size for QTC_CPP_FILE_SIZE_LIMIT_MB
Change-Id: I7729fe944e38726d5c4692f6013e60b3f4fd8c26 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -278,7 +278,7 @@ bool skipFileDueToSizeLimit(const QFileInfo &fileInfo, int limitInMB)
|
||||
if (limitInMB == 0) // unlimited
|
||||
return false;
|
||||
|
||||
const int fileSizeInMB = fileInfo.size() * 1000 * 1000;
|
||||
const int fileSizeInMB = fileInfo.size() / (1000 * 1000);
|
||||
if (fileSizeInMB > limitInMB) {
|
||||
qWarning() << "Files to process limited by QTC_CPP_FILE_SIZE_LIMIT_MB, skipping"
|
||||
<< fileInfo.absoluteFilePath();
|
||||
|
||||
Reference in New Issue
Block a user