xosview
1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
![]() ![]() |
#include "cpumeter.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/utsname.h>
#include <string>
#include <iostream>
#include <fstream>
Go to the source code of this file.
Macros | |
#define | MAX_PROCSTAT_LENGTH 4096 |
Variables | |
static const char | STATFILENAME [] = "/proc/stat" |
static int | cputime_to_field [10] = { 0, 1, 2, 9, 5, 4, 3, 8, 6, 7 } |
#define MAX_PROCSTAT_LENGTH 4096 |
Definition at line 20 of file cpumeter.cc.
|
static |
Definition at line 18 of file cpumeter.cc.
|
static |
Definition at line 17 of file cpumeter.cc.
Referenced by CPUMeter::countCPUs(), and CPUMeter::findLine().