mirror of
https://github.com/sheumann/hush.git
synced 2025-01-27 21:33:05 +00:00
use busybox sysinfo struct
This commit is contained in:
parent
256c4fd587
commit
5c9323f4e6
@ -41,7 +41,6 @@ long uptime(void)
|
|||||||
{
|
{
|
||||||
struct sysinfo info;
|
struct sysinfo info;
|
||||||
sysinfo(&info);
|
sysinfo(&info);
|
||||||
printf("uptime %ld\n", (long)info.uptime);
|
|
||||||
return info.uptime;
|
return info.uptime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sys/sysinfo.h>
|
||||||
|
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#define FALSE 0
|
#define FALSE 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user