Extended names for variables

Extended names for variables:
from major to majorVersion;
from minor to minorVersion;
This commit is contained in:
lunardunno 2025-04-05 11:02:57 +04:00 committed by GitHub
parent 39ab6dca1e
commit fd6a47f9d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,10 +411,10 @@ ErrorCode ServerController::installDockerWorker(const ServerCredentials &credent
QRegularExpression regex(R"(Linux\s+(\d+)\.(\d+)[^\d]*)");
QRegularExpressionMatch match = regex.match(stdOut);
if (match.hasMatch()) {
int major = match.captured(1).toInt();
int minor = match.captured(2).toInt();
int majorVersion = match.captured(1).toInt();
int minorVersion = match.captured(2).toInt();
if (major < 4 || (major == 4 && minor < 14)) {
if (majorVersion < 4 || (majorVersion == 4 && minorVersion < 14)) {
return ErrorCode::ServerLinuxKernelTooOld;
}
}