Use separate os name for android stats
This commit is contained in:
parent
cf2a9f7089
commit
48d94e10a7
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user