From cbd4915b703f03b6e29a496402d2bbafe280c1f5 Mon Sep 17 00:00:00 2001 From: IndrekV Date: Mon, 29 Jan 2018 07:00:40 +0200 Subject: [PATCH] Improved os tracking text format (lib) --- src/context.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/context.cc b/src/context.cc index 0e0a88c112..e4f317e96d 100644 --- a/src/context.cc +++ b/src/context.cc @@ -283,10 +283,11 @@ error Context::StartEvents() { analytics_.TrackChannel(db_->AnalyticsClientID(), update_channel); + // Track user os version std::stringstream os_info; - os_info << Poco::Environment::osName() - << Poco::Environment::osVersion() - << Poco::Environment::osArchitecture(); + os_info << Poco::Environment::osDisplayName() + << "_" << Poco::Environment::osVersion() + << "_" << Poco::Environment::osArchitecture(); analytics_.TrackOs(db_->AnalyticsClientID(), os_info.str()); }