use busybox sysinfo struct
This commit is contained in:
parent
256c4fd587
commit
5c9323f4e6
@ -41,7 +41,6 @@ long uptime(void)
|
||||
{
|
||||
struct sysinfo info;
|
||||
sysinfo(&info);
|
||||
printf("uptime %ld\n", (long)info.uptime);
|
||||
return info.uptime;
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
Loading…
Reference in New Issue
Block a user