config.h fixed

This commit is contained in:
Your Name 2023-11-14 23:25:45 +03:00
parent 8ee0a82786
commit 941b823d1c
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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};

View File

@ -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;