[FIX] compareMode обернут

This commit is contained in:
Gravit 2019-03-09 21:20:08 +07:00
parent d5c7e5ed68
commit af90fd41ca
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -144,12 +144,15 @@ public void onCheckInfo(OshiHWID hwid, String username, Connection c) throws HWI
boolean isOne = false; boolean isOne = false;
while(set.next()) { while(set.next()) {
if(!oneCompareMode) isOne = true; if(!oneCompareMode) isOne = true;
OshiHWID db_hwid = new OshiHWID(); if(compareMode)
db_hwid.serialNumber = set.getString(hwidFieldSerialNumber); {
db_hwid.processorID = set.getString(hwidFieldProcessorID); OshiHWID db_hwid = new OshiHWID();
db_hwid.HWDiskSerial = set.getString(hwidFieldHWDiskSerial); db_hwid.serialNumber = set.getString(hwidFieldSerialNumber);
db_hwid.totalMemory = Long.valueOf(set.getString(hwidFieldTotalMemory)); db_hwid.processorID = set.getString(hwidFieldProcessorID);
if(hwid.compare(db_hwid) < compare) continue; db_hwid.HWDiskSerial = set.getString(hwidFieldHWDiskSerial);
db_hwid.totalMemory = Long.valueOf(set.getString(hwidFieldTotalMemory));
if(hwid.compare(db_hwid) < compare) continue;
}
if(oneCompareMode) isOne = true; if(oneCompareMode) isOne = true;
boolean isBanned = set.getBoolean(hwidFieldBanned); boolean isBanned = set.getBoolean(hwidFieldBanned);
if (isBanned) { if (isBanned) {