Commit c14e73cd authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Fix comparing size for QTC_CPP_FILE_SIZE_LIMIT_MB

Change-Id: I7729fe944e38726d5c4692f6013e60b3f4fd8c26
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent a7dd2ed4
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment