Commit | Line | Data |
---|---|---|
1 | diff --git a/src/util.cc b/src/util.cc | |
2 | index 84de879..0ac9ec7 100644 | |
3 | --- a/src/util.cc | |
4 | +++ b/src/util.cc | |
5 | @@ -585,7 +585,7 @@ double GetLoadAverage() { | |
6 | // Calculation taken from comment in libperfstats.h | |
7 | return double(cpu_stats.loadavg[0]) / double(1 << SBITS); | |
8 | } | |
9 | -#elif defined(__UCLIBC__) | |
10 | +#elif defined(__UCLIBC__) || defined(__ANDROID__) | |
11 | double GetLoadAverage() { | |
12 | struct sysinfo si; | |
13 | if (sysinfo(&si) != 0) |