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.


static unsigned long long getCount (const char *filename)


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)

Definition at line 33 of file netmeter.cc.

Referenced by NetMeter::getSysStats().

Variable Documentation


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

Definition at line 20 of file netmeter.cc.

Referenced by NetMeter::getProcStats().


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

Definition at line 21 of file netmeter.cc.

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