2.0: List5Mins, ListHours, ListDays, ListMonths, ListYears, ListTop,
5MinuteHours, HourlyDays, DailyDays, MonthlyMonths, YearlyYears,
- TopDayEntries, MonthRotateAffectsYears
+ TopDayEntries, MonthRotateAffectsYears, TrafficlessEntries
1.18: TimeSyncWait, DefaultDecimals, HourlyDecimals, HourlySectionStyle
# how much the boot time can variate between updates (seconds)
BootVariation 15
-# log days without traffic to daily list (1 = enabled, 0 = disabled)
-TrafficlessDays 1
+# create database entries even when there is no traffic (1 = enabled, 0 = disabled)
+TrafficlessEntries 1
# how many minutes to wait during daemon startup for system clock to
# sync time if most recent database update appears to be in the future
resolution.
.TP
-.B TrafficlessDays
-Log days without any traffic to daily list. 1 = enabled, 0 = disabled.
+.B TrafficlessEntries
+Create database entries even when there is no traffic during the entry's time
+period. 1 = enabled, 0 = disabled.
.TP
.B UpdateFileOwner
{ "QueryMode", 0, &cfg.qmode, 0, 0 },
{ "CheckDiskSpace", 0, &cfg.spacecheck, 0, 0 },
{ "BootVariation", 0, &cfg.bvar, 0, 0 },
- { "TrafficlessDays", 0, &cfg.traflessday, 0, 0 },
+ { "TrafficlessEntries", 0, &cfg.trafficlessentries, 0, 0 },
{ "List5Mins", 0, &cfg.listfivemins, 0, 0 },
{ "ListHours", 0, &cfg.listhours, 0, 0 },
{ "ListDays", 0, &cfg.listdays, 0, 0 },
printe(PT_Config);
}
- if (cfg.traflessday<0 || cfg.traflessday>1) {
- cfg.traflessday = TRAFLESSDAY;
- snprintf(errorstring, 1024, "%s TrafficlessDays, %s \"%d\".", invalidvalue, resettingto, cfg.traflessday);
+ if (cfg.trafficlessentries<0 || cfg.trafficlessentries>1) {
+ cfg.trafficlessentries = TRAFFICLESSENTRIES;
+ snprintf(errorstring, 1024, "%s TrafficlessEntries, %s \"%d\".", invalidvalue, resettingto, cfg.trafficlessentries);
printe(PT_Config);
}
cfg.spacecheck = USESPACECHECK;
cfg.hourlyrate = HOURLYRATE;
cfg.summaryrate = SUMMARYRATE;
- cfg.traflessday = TRAFLESSDAY;
+ cfg.trafficlessentries = TRAFFICLESSENTRIES;
cfg.utflocale = UTFLOCALE;
cfg.listfivemins = LISTFIVEMINS;
printf("# how much the boot time can variate between updates (seconds)\n");
printf("BootVariation %d\n\n", cfg.bvar);
- printf("# log days without traffic to daily list (1 = enabled, 0 = disabled)\n");
- printf("TrafficlessDays %d\n\n", cfg.traflessday);
+ printf("# create database entries even when there is no traffic (1 = enabled, 0 = disabled)\n");
+ printf("TrafficlessEntries %d\n\n", cfg.trafficlessentries);
printf("# how many minutes to wait during daemon startup for system clock to\n");
printf("# sync time if most recent database update appears to be in the future\n");
/* check disk space by default */
#define USESPACECHECK 1
-/* log trafficless days by default */
-#define TRAFLESSDAY 1
+/* create trafficless entries by default */
+#define TRAFFICLESSENTRIES 1
/* list outputs */
#define LISTFIVEMINS 24
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];
int32_t unitmode, rateunitmode, rateunit, bvar, qmode, sampletime, hourlyrate, summaryrate;
- int32_t monthrotate, monthrotateyears, maxbw, spacecheck, traflessday, transbg, ostyle;
+ int32_t monthrotate, monthrotateyears, maxbw, spacecheck, trafficlessentries, transbg, ostyle;
int32_t defaultdecimals, hourlydecimals, hourlystyle;
char cfgfile[512], logfile[512], pidfile[512];
char daemonuser[33], daemongroup[33];
}
}
- if (rxchange || txchange || cfg.traflessday) {
+ if (rxchange || txchange || cfg.trafficlessentries) {
xferlog_add(&(*dc)->log, ifinfo.timestamp - (ifinfo.timestamp % 300), rxchange, txchange);
}
}
ifinfo.rx = 1111111;
ifinfo.tx = 2222222;
ifinfo.timestamp = 250;
- cfg.traflessday = 0;
+ cfg.trafficlessentries = 0;
ck_assert_int_eq(datacache_count(&s.dcache), 0);
ret = datacache_add(&s.dcache, "ethsomething", 0);
ifinfo.rx = 1111111;
ifinfo.tx = 2222222;
ifinfo.timestamp = 250;
- cfg.traflessday = 1;
+ cfg.trafficlessentries = 1;
ck_assert_int_eq(datacache_count(&s.dcache), 0);
ret = datacache_add(&s.dcache, "ethsomething", 0);