config.h fixed
This commit is contained in:
parent
8ee0a82786
commit
941b823d1c
7
config.h
7
config.h
|
@ -7,8 +7,13 @@
|
|||
/* Random source for shred */
|
||||
#define RAND_SOURCE "/dev/urandom"
|
||||
|
||||
/* Options. To disable, comment line */
|
||||
/* Options: To disable, comment line */
|
||||
/* Add escape-char support in echo */
|
||||
#define ECHO_FANCY
|
||||
|
||||
/* getloadavg() unavailable in android os */
|
||||
#ifndef __ANDROID__
|
||||
#define UPTIME_LOADAVG
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include "config.h"
|
||||
|
||||
#if defined(CLOCK_BOOTTIME)
|
||||
#define CLOCK CLOCK_BOOTTIME
|
||||
|
@ -38,7 +39,7 @@ int main(void) {
|
|||
printf(" %d mins", mins);
|
||||
}
|
||||
|
||||
#ifndef __ANDROID__
|
||||
#ifdef UPTIME_LOADAVG
|
||||
/* Print 1, 5 and 15 minute load averages */
|
||||
double avg[3] = {0, 0, 0};
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/klog.h>
|
||||
#define BUF_SIZE 8196
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
unsigned int s_size = 0;
|
||||
|
|
Loading…
Reference in New Issue