This commit is contained in:
Roxanne Skelly 2019-06-24 14:58:06 -07:00
parent 3c0c1413db
commit c5883a8d67
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ NodeConnectionData NodeConnectionData::fromDataStream(QDataStream& dataStream, c
// and the operating system type
QByteArray compressedSystemInfo;
dataStream >> compressedSystemInfo;
if(!compressedSystemInfo.isEmpty()) {
if (!compressedSystemInfo.isEmpty()) {
newHeader.SystemInfo = qUncompress(compressedSystemInfo);
}

View file

@ -426,7 +426,7 @@ void NodeList::sendDomainServerCheckIn() {
QByteArray systemInfo(desc.dump().c_str());
QByteArray compressedSystemInfo = qCompress(systemInfo);
if(compressedSystemInfo.size() > MAX_SYSTEM_INFO_SIZE) {
if (compressedSystemInfo.size() > MAX_SYSTEM_INFO_SIZE) {
// Highly unlikely, as not even unreasonable machines will
// overflow the max size, but prevent MTU overflow anyway.
// We could do something sophisticated like clearing specific