diff --git a/miscutils/getloadavg.c b/miscutils/getloadavg.c index ba7015d..0569f5f 100644 --- a/miscutils/getloadavg.c +++ b/miscutils/getloadavg.c @@ -4,12 +4,10 @@ int main(void) { double avg[3] = {0, 0, 0}; -#ifndef __ANDROID__ if (getloadavg(avg, sizeof(avg) / sizeof(avg[0])) < 0) { fprintf(stderr, "getloadavg: getloadavg() failed\n"); return 1; } -#endif printf("%.2f %.2f %.2f\n", avg[0], avg[1], avg[2]); } diff --git a/procps/uptime.c b/procps/uptime.c index dacde01..1c0fc04 100644 --- a/procps/uptime.c +++ b/procps/uptime.c @@ -42,12 +42,10 @@ int main(void) { /* Print 1, 5 and 15 minute load averages */ double avg[3] = {0, 0, 0}; -#ifndef __ANDROID__ if (getloadavg(avg, sizeof(avg) / sizeof(avg[0])) < 0) { fprintf(stderr, "getloadavg: getloadavg() failed\n"); return 1; } -#endif printf(" load average: %.2f %.2f %.2f\n", avg[0], avg[1], avg[2]); return 0;