From 55541c387c8096a941b6c007f97823d807967289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 26 Nov 2016 02:18:05 +0100 Subject: NOISSUE simplify system detection and user agent handling Now it only checks OS kernel name/version. User agent is 'MultiMC5/$version'. Kernel info is passed through custom dimensions in analytics. --- libraries/ganalytics/include/sys.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libraries/ganalytics/include') diff --git a/libraries/ganalytics/include/sys.h b/libraries/ganalytics/include/sys.h index 40e4e513..36f7d9cd 100644 --- a/libraries/ganalytics/include/sys.h +++ b/libraries/ganalytics/include/sys.h @@ -3,11 +3,13 @@ namespace Sys { -/** - * Get operation system name and version. - * @return os A QString with the name and version of the operating system. - */ -QString getSystemInfo(); +struct KernelInfo +{ + QString kernelName; + QString kernelVersion; +}; + +KernelInfo getKernelInfo(); uint64_t getSystemRam(); -- cgit v1.2.3