summaryrefslogtreecommitdiff
path: root/sysinfo.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:47:41 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:47:41 +0100
commit22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0 (patch)
treede46c945c62d43d1febb027b5bfa075e58c5b69a /sysinfo.h
downloadvdr-plugin-graphtftng-22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0.tar.gz
vdr-plugin-graphtftng-22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0.tar.bz2
Diffstat (limited to 'sysinfo.h')
-rw-r--r--sysinfo.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/sysinfo.h b/sysinfo.h
new file mode 100644
index 0000000..fdc3325
--- /dev/null
+++ b/sysinfo.h
@@ -0,0 +1,39 @@
+/*
+ * sysinfo.h: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ * Date: 03.06.07
+ *
+ */
+
+#ifndef __SYSINFO_H
+#define __SYSINFO_H
+
+#include <common.h>
+
+//***************************************************************************
+// Sysinfo
+//***************************************************************************
+
+class Sysinfo
+{
+ public:
+
+ // interface
+
+ static int init();
+ static int exit();
+ static int cpuLoad();
+ static int memInfoMb(unsigned long& total, unsigned long& used,
+ unsigned long& free, unsigned long& cached);
+
+ private:
+
+ static double lastIdle;
+ static double lastTotal;
+ static int initialized;
+};
+
+//***************************************************************************
+#endif // __SYSINFO_H