X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fserver%2Fsysinfo.h;h=1d0537a31b76ecc2669d7a656cf88f238c2eb640;hb=c1e20f2631a1249720e9c75d753eacfcb0f6c7b9;hp=a4dd809bc68dc26168397fe060803766f1675e79;hpb=45c8086f97097df36ba8cd0552f152be80f79b12;p=psensor.git diff --git a/src/server/sysinfo.h b/src/server/sysinfo.h index a4dd809..1d0537a 100644 --- a/src/server/sysinfo.h +++ b/src/server/sysinfo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2011 jeanfi@gmail.com + * Copyright (C) 2010-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -19,18 +19,25 @@ #ifndef _PSENSOR_SYSINFO_H_ #define _PSENSOR_SYSINFO_H_ -#include +#include +#include +#include +#include +#include struct psysinfo { - float cpu_rate; + glibtop_loadavg loadavg; + glibtop_mem mem; + glibtop_swap swap; + glibtop_uptime uptime; - struct sysinfo sysinfo; + float cpu_rate; char **interfaces; }; void sysinfo_update(struct psysinfo *sysinfo); -void sysinfo_cleanup(); +void sysinfo_cleanup(void); char *sysinfo_to_json_string(const struct psysinfo *sysinfo);