Use separate os name for android stats

This commit is contained in:
Deve 2017-10-07 21:35:38 +02:00
parent cf2a9f7089
commit 48d94e10a7
2 changed files with 8 additions and 1 deletions

View File

@ -294,7 +294,12 @@ void reportHardwareStats()
#else #else
json.add("os_macosx", 0); json.add("os_macosx", 0);
#endif #endif
#ifdef __linux__ #ifdef ANDROID
json.add("os_android", 1);
#else
json.add("os_android", 0);
#endif
#if defined(__linux__) && !defined(ANDROID)
json.add("os_linux", 1); json.add("os_linux", 1);
json.add("os_unix", 1); json.add("os_unix", 1);
#else #else

View File

@ -274,6 +274,8 @@ namespace Online
uagent += (std::string)" (Macintosh)"; uagent += (std::string)" (Macintosh)";
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
uagent += (std::string)" (FreeBSD)"; uagent += (std::string)" (FreeBSD)";
#elif defined(ANDROID)
uagent += (std::string)" (Android)";
#elif defined(linux) #elif defined(linux)
uagent += (std::string)" (Linux)"; uagent += (std::string)" (Linux)";
#else #else