mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
Merge pull request #16080 from roxanneskelly/bugz1275
BUGZ-1275 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:
commit
3b3bce059b
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue