use busybox sysinfo struct

This commit is contained in:
Russ Dill 2004-05-19 09:18:04 +00:00
parent 256c4fd587
commit 5c9323f4e6
2 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,6 @@ long uptime(void)
{
struct sysinfo info;
sysinfo(&info);
printf("uptime %ld\n", (long)info.uptime);
return info.uptime;
}

View File

@ -31,6 +31,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/sysinfo.h>
#define TRUE 1
#define FALSE 0