Additional Grapics API info was added to the system info, which

overflowed the amount of info that could be sent in a packet.
This commit is contained in:
Roxanne Skelly 2019-08-20 16:33:29 -07:00
parent 3b138fe031
commit 8ac185af11

View file

@ -425,7 +425,15 @@ void NodeList::sendDomainServerCheckIn() {
auto accountManager = DependencyManager::get<AccountManager>();
packetStream << FingerprintUtils::getMachineFingerprint();
auto desc = platform::getAll();
platform::json all = platform::getAll();
platform::json desc;
// only pull out those items that will fit within a packet
desc[platform::keys::COMPUTER] = all[platform::keys::COMPUTER];
desc[platform::keys::MEMORY] = all[platform::keys::MEMORY];
desc[platform::keys::CPUS] = all[platform::keys::CPUS];
desc[platform::keys::GPUS] = all[platform::keys::GPUS];
desc[platform::keys::DISPLAYS] = all[platform::keys::DISPLAYS];
desc[platform::keys::NICS] = all[platform::keys::NICS];
QByteArray systemInfo(desc.dump().c_str());
QByteArray compressedSystemInfo = qCompress(systemInfo);