projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed restoration of the panel divider position.
[psensor.git]
/
src
/
server
/
sysinfo.h
diff --git
a/src/server/sysinfo.h
b/src/server/sysinfo.h
index
a4dd809
..
1d0537a
100644
(file)
--- a/
src/server/sysinfo.h
+++ b/
src/server/sysinfo.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
1
jeanfi@gmail.com
+ * Copyright (C) 2010-201
4
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
*
* 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_
#ifndef _PSENSOR_SYSINFO_H_
#define _PSENSOR_SYSINFO_H_
-#include <sys/sysinfo.h>
+#include <config.h>
+#include <glibtop/loadavg.h>
+#include <glibtop/mem.h>
+#include <glibtop/swap.h>
+#include <glibtop/uptime.h>
struct psysinfo {
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);
char **interfaces;
};
void sysinfo_update(struct psysinfo *sysinfo);
-void sysinfo_cleanup();
+void sysinfo_cleanup(
void
);
char *sysinfo_to_json_string(const struct psysinfo *sysinfo);
char *sysinfo_to_json_string(const struct psysinfo *sysinfo);