"Fossies" - the Fresh Open Source Software Archive  

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

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

common.h  (vnstat-2.7):common.h  (vnstat-2.8)
skipping to change at line 74 skipping to change at line 74
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defin ed(__APPLE__) #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defin ed(__APPLE__)
#define DATABASEDIR "/var/db/vnstat" #define DATABASEDIR "/var/db/vnstat"
#else #else
#define DATABASEDIR "/var/lib/vnstat" #define DATABASEDIR "/var/lib/vnstat"
#endif #endif
#endif #endif
/* database file name */ /* database file name */
#define DATABASEFILE "vnstat.db" #define DATABASEFILE "vnstat.db"
/* modifier used for sqlite date and time functions */
#define DATABASELOCALTIMEMODIFIER ", 'localtime'"
/* on which day should months change */ /* on which day should months change */
#define MONTHROTATE 1 #define MONTHROTATE 1
#define MONTHROTATEYEARS 0 #define MONTHROTATEYEARS 0
/* date output formats for -d, -m, -t and image header*/ /* date output formats for -d, -m, -t and image header*/
/* see 'man date' for control codes 1.x values <1.8 values */ /* see 'man date' for control codes 1.x values <1.8 values */
#define DFORMAT "%Y-%m-%d" /* "%x" "%d.%m." */ #define DFORMAT "%Y-%m-%d" /* "%x" "%d.%m." */
#define MFORMAT "%Y-%m" /* "%b '%y" "%b '%y" */ #define MFORMAT "%Y-%m" /* "%b '%y" "%b '%y" */
#define TFORMAT "%Y-%m-%d" /* "%x" "%d.%m.%y" */ #define TFORMAT "%Y-%m-%d" /* "%x" "%d.%m.%y" */
#define HFORMAT "%Y-%m-%d %H:%M" /* "%x %H:%M" "%d.%m.%Y %H:%M" */ #define HFORMAT "%Y-%m-%d %H:%M" /* "%x %H:%M" "%d.%m.%Y %H:%M" */
skipping to change at line 229 skipping to change at line 232
#ifndef SYSCLASSNET #ifndef SYSCLASSNET
#define SYSCLASSNET "/sys/class/net" #define SYSCLASSNET "/sys/class/net"
#endif #endif
/* daemon defaults */ /* daemon defaults */
#define UPDATEINTERVAL 20 #define UPDATEINTERVAL 20
#define TIMESYNCWAIT 5 #define TIMESYNCWAIT 5
#define POLLINTERVAL 5 #define POLLINTERVAL 5
#define SAVEINTERVAL 5 #define SAVEINTERVAL 5
#define OFFSAVEINTERVAL 30 #define OFFSAVEINTERVAL 30
#define RESCANONSAVE 1
#define ALWAYSADD 0
#define SAVESTATUS 1 #define SAVESTATUS 1
#define USELOGGING 2 #define USELOGGING 2
#define CREATEDIRS 1 #define CREATEDIRS 1
#define UPDATEFILEOWNER 1 #define UPDATEFILEOWNER 1
#define LOGFILE "/var/log/vnstat/vnstat.log" #define LOGFILE "/var/log/vnstat/vnstat.log"
#define PIDFILE "/var/run/vnstat/vnstat.pid" #define PIDFILE "/var/run/vnstat/vnstat.pid"
#define IS64BIT -2 #define IS64BIT -2
#define WALDB 0 #define WALDB 0
#define WALDBCHECKPOINTINTERVALMINS 240 #define WALDBCHECKPOINTINTERVALMINS 240
#define SLOWDBWARNLIMIT 4.0 // needs to be less than DBREADTIMEOUTSECS #define SLOWDBWARNLIMIT 4.0 // needs to be less than DBREADTIMEOUTSECS
#define DBSYNCHRONOUS -1 #define DBSYNCHRONOUS -1
#define USEUTC 0
/* database read timeout */ /* database read timeout */
#define DBREADTIMEOUTSECS 5 #define DBREADTIMEOUTSECS 5
/* no transparency by default */ /* no transparency by default */
#define TRANSBG 0 #define TRANSBG 0
/* small fonts by default */ /* small fonts by default */
#define LARGEFONTS 0 #define LARGEFONTS 0
skipping to change at line 296 skipping to change at line 302
/* number of retries after non-fatal database errors, */ /* number of retries after non-fatal database errors, */
/* will result in given number + 1 tries in total before exit, */ /* will result in given number + 1 tries in total before exit, */
/* a full disk (as reported by sqlite) will no cause retries or exit */ /* a full disk (as reported by sqlite) will no cause retries or exit */
#define DBRETRYLIMIT 5 #define DBRETRYLIMIT 5
/* 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]; 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, sampletime, hourly rate, 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, 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; int32_t fivegheight, summarygraph, 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, 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 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;
 End of changes. 7 change blocks. 
4 lines changed or deleted 10 lines changed or added

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