From 6d1f639bc69559c6954290bdeeb3ad39d8f54c06 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 20 Jun 2023 20:37:17 +0200 Subject: [PATCH] impr: Added GPU vendor and portable version flag to statistics --- main/source/init/tasks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/source/init/tasks.cpp b/main/source/init/tasks.cpp index 8a4cbf62f..406a4604d 100644 --- a/main/source/init/tasks.cpp +++ b/main/source/init/tasks.cpp @@ -80,9 +80,9 @@ namespace hex::init { // Make telemetry request nlohmann::json telemetry = { - {"uuid", uuid}, - {"version", IMHEX_VERSION}, - {"os", fmt::format("{}/{}/{}", ImHexApi::System::getOSName(), ImHexApi::System::getOSVersion(), ImHexApi::System::getArchitecture()) } + { "uuid", uuid }, + { "version", fmt::format("{}/{}", IMHEX_VERSION, ImHexApi::System::isPortableVersion() ? "Portable" : "Installed") }, + { "os", fmt::format("{}/{}/{}/{}", ImHexApi::System::getOSName(), ImHexApi::System::getOSVersion(), ImHexApi::System::getArchitecture(), ImHexApi::System::getGPUVendor()) } }; HttpRequest telemetryRequest("POST", ImHexApiURL + "/telemetry"s);