From 22ffee20bbacbc3378e4ba0df5b7f0c3daaeffc0 Mon Sep 17 00:00:00 2001 From: horchi Date: Sun, 5 Mar 2017 16:47:41 +0100 Subject: git init --- sysinfo.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 sysinfo.h (limited to 'sysinfo.h') 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 + +//*************************************************************************** +// 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 -- cgit v1.2.3