diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-26 02:18:05 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-26 02:18:05 +0100 |
commit | 55541c387c8096a941b6c007f97823d807967289 (patch) | |
tree | 30a89d360408e51de4cd00fbe8559c869e517ef9 /libraries/ganalytics/include/sys.h | |
parent | d5fdc23eb29da45b4716f7515388d3c896dbd76a (diff) | |
download | MultiMC-55541c387c8096a941b6c007f97823d807967289.tar MultiMC-55541c387c8096a941b6c007f97823d807967289.tar.gz MultiMC-55541c387c8096a941b6c007f97823d807967289.tar.lz MultiMC-55541c387c8096a941b6c007f97823d807967289.tar.xz MultiMC-55541c387c8096a941b6c007f97823d807967289.zip |
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.
Diffstat (limited to 'libraries/ganalytics/include/sys.h')
-rw-r--r-- | libraries/ganalytics/include/sys.h | 12 |
1 files changed, 7 insertions, 5 deletions
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(); |