"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common.h" between
vnstat-2.8.tar.gz and vnstat-2.9.tar.gz

About: vnStat is a console-based network traffic monitor (using the /proc filesystem).

common.h  (vnstat-2.8):common.h  (vnstat-2.9)
skipping to change at line 157 skipping to change at line 157
#define BWMAX 50000 #define BWMAX 50000
/* how many seconds should sampling take by default */ /* how many seconds should sampling take by default */
#define DEFSAMPTIME 5 #define DEFSAMPTIME 5
/* default query mode */ /* default query mode */
/* 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short */ /* 0 = normal, 1 = days, 2 = months, 3 = top, 5 = short */
/* 7 = hours, 8 = xml, 9 = one line, 10 = json */ /* 7 = hours, 8 = xml, 9 = one line, 10 = json */
#define DEFQMODE 0 #define DEFQMODE 0
/* interface match method */
/* 0 = interface name exact case sensitive, 1 = 0 + case sensitive exact alias *
/
/* 2 = 1 + case insensitive exact alias, 3 = 2 + case insensitive beginning of a
lias */
#define IFACEMATCHMETHOD 3
/* how much the boot time can variate between updates (seconds) */ /* how much the boot time can variate between updates (seconds) */
#define BVAR 15 #define BVAR 15
/* check disk space by default */ /* check disk space by default */
#define USESPACECHECK 1 #define USESPACECHECK 1
/* create trafficless entries by default */ /* create trafficless entries by default */
#define TRAFFICLESSENTRIES 1 #define TRAFFICLESSENTRIES 1
/* list outputs */ /* list outputs */
skipping to change at line 275 skipping to change at line 280
/* bar column in list outputs shows rate when rate column is visible */ /* bar column in list outputs shows rate when rate column is visible */
#define BARSHOWSRATE 0 #define BARSHOWSRATE 0
/* 5 minute graph size */ /* 5 minute graph size */
#define FIVEGRESULTCOUNT 576 #define FIVEGRESULTCOUNT 576
#define FIVEGHEIGHT 300 #define FIVEGHEIGHT 300
#define FIVEGMINRESULTCOUNT 288 #define FIVEGMINRESULTCOUNT 288
#define FIVEGMINHEIGHT 150 #define FIVEGMINHEIGHT 150
/* hourly graph mode (0 = 24 hour sliding window, 1 = begins from midnight) */
#define HOURLYGMODE 0
/* graph used in extended summary, 0 = hours, 1 = 5 minutes*/ /* graph used in extended summary, 0 = hours, 1 = 5 minutes*/
#define SUMMARYGRAPH 0 #define SUMMARYGRAPH 0
/* default colors */ /* default colors */
#define CBACKGROUND "FFFFFF" #define CBACKGROUND "FFFFFF"
#define CEDGE "AEAEAE" #define CEDGE "AEAEAE"
#define CHEADER "606060" #define CHEADER "606060"
#define CHEADERTITLE "FFFFFF" #define CHEADERTITLE "FFFFFF"
#define CHEADERDATE "FFFFFF" #define CHEADERDATE "FFFFFF"
#define CTEXT "000000" #define CTEXT "000000"
skipping to change at line 306 skipping to change at line 314
/* internal config structure */ /* internal config structure */
typedef struct { typedef struct {
char dformat[64], mformat[64], tformat[64], hformat[64]; char dformat[64], mformat[64], tformat[64], hformat[64];
char iface[32]; char iface[32];
char locale[32]; char locale[32];
char dbdir[512], dbtzmodifier[14]; char dbdir[512], dbtzmodifier[14];
char rxchar[2], txchar[2], rxhourchar[2], txhourchar[2]; char rxchar[2], txchar[2], rxhourchar[2], txhourchar[2];
char cbg[8], cedge[8], cheader[8], cheadertitle[8], cheaderdate[8], ctext [8]; char cbg[8], cedge[8], cheader[8], cheadertitle[8], cheaderdate[8], ctext [8];
char cline[8], clinel[8], cvnstat[8], crx[8], crxd[8], ctx[8], ctxd[8]; char cline[8], clinel[8], cvnstat[8], crx[8], crxd[8], ctx[8], ctxd[8];
int32_t unitmode, rateunitmode, rateunit, bvar, qmode, sampletime, hourly rate, summaryrate; int32_t unitmode, rateunitmode, rateunit, bvar, qmode, ifacematchmethod, sampletime, hourlyrate, summaryrate;
int32_t monthrotate, monthrotateyears, maxbw, spacecheck, trafficlessentr ies, transbg, ostyle; int32_t monthrotate, monthrotateyears, maxbw, spacecheck, trafficlessentr ies, transbg, ostyle;
int32_t defaultdecimals, hourlydecimals, hourlystyle, is64bit, waldb, dbs ynchronous, useutc, imagescale; int32_t defaultdecimals, hourlydecimals, hourlystyle, is64bit, waldb, dbs ynchronous, useutc, imagescale;
int32_t largefonts, linespaceadjust, estimatebarvisible, estimatestyle, b arshowsrate, fivegresultcount; int32_t largefonts, linespaceadjust, estimatebarvisible, estimatestyle, b arshowsrate, fivegresultcount;
int32_t fivegheight, summarygraph, alwaysadd; int32_t fivegheight, summarygraph, hourlygmode, alwaysadd;
char cfgfile[512], logfile[512], pidfile[512]; char cfgfile[512], logfile[512], pidfile[512];
char daemonuser[33], daemongroup[33]; char daemonuser[33], daemongroup[33];
int32_t timesyncwait, updateinterval, pollinterval, saveinterval, offsave interval, rescanonsave, savestatus; int32_t timesyncwait, updateinterval, pollinterval, saveinterval, offsave interval, rescanonsave, savestatus;
int32_t uselogging, createdirs, updatefileowner, bwdetection, bwdetection interval, utflocale; int32_t uselogging, createdirs, updatefileowner, bwdetection, bwdetection interval, utflocale;
int32_t fiveminutehours, hourlydays, dailydays, monthlymonths, yearlyyear s, topdayentries; int32_t fiveminutehours, hourlydays, dailydays, monthlymonths, yearlyyear s, topdayentries;
int32_t listfivemins, listhours, listdays, listmonths, listyears, listtop , listjsonxml; int32_t listfivemins, listhours, listdays, listmonths, listyears, listtop , listjsonxml;
int32_t experimental; int32_t timestampprints, experimental;
} CFG; } CFG;
/* internal interface information structure */ /* internal interface information structure */
typedef struct { typedef struct {
char name[32]; char name[32];
short filled; short filled;
short is64bit; short is64bit;
uint64_t rx; uint64_t rx;
uint64_t tx; uint64_t tx;
uint64_t rxp; uint64_t rxp;
 End of changes. 5 change blocks. 
3 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)