mirror of https://github.com/mirror/busybox.git
use busybox sysinfo struct
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