Merge branch 'master' into develop
[jack2.git] / linux / uptime.c
blobd6e6c9d5f04ef2ed584194a2a36ba581c133e30d
1 #include <sys/sysinfo.h>
3 long uptime(void) {
4 struct sysinfo si;
6 if (sysinfo(&si) != 0)
8 return -1;
11 return si.uptime;