xosview  1.23
About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).
  Fossies Dox: xosview-1.23.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

netmeter.cc File Reference
#include "netmeter.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
Include dependency graph for netmeter.cc:

Go to the source code of this file.

Functions

static unsigned long long getCount (const char *filename)
 

Variables

static const char PROCNETDEV [] = "/proc/net/dev"
 
static const char SYSCLASSNET [] = "/sys/class/net"
 

Function Documentation

◆ getCount()

static unsigned long long getCount ( const char *  filename)
static

Definition at line 33 of file netmeter.cc.

Referenced by NetMeter::getSysStats().

Variable Documentation

◆ PROCNETDEV

const char PROCNETDEV[] = "/proc/net/dev"
static

Definition at line 20 of file netmeter.cc.

Referenced by NetMeter::getProcStats().

◆ SYSCLASSNET

const char SYSCLASSNET[] = "/sys/class/net"
static

Definition at line 21 of file netmeter.cc.

Referenced by NetMeter::getSysStats(), and NetMeter::NetMeter().