summaryrefslogtreecommitdiff
path: root/sysinfo.h
blob: fdc3325b713929cb203d4f70122b07eb3ccec6f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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