"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dbaccess.c" between
vnstat-2.4.tar.gz and vnstat-2.5.tar.gz

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

dbaccess.c  (vnstat-2.4):dbaccess.c  (vnstat-2.5)
skipping to change at line 348 skipping to change at line 348
d->tm_mday = cfg.monthrotate; d->tm_mday = cfg.monthrotate;
d->tm_mon--; d->tm_mon--;
data->month[0].month = mktime(d); data->month[0].month = mktime(d);
} else { } else {
data->month[0].month = current; data->month[0].month = current;
} }
data->btime = MAX32; data->btime = MAX32;
} }
int removedb(const char *iface, const char *dirname)
{
char file[512];
/* remove backup first */
snprintf(file, 512, "%s/.%s", dirname, iface);
unlink(file);
snprintf(file, 512, "%s/%s", dirname, iface);
if (unlink(file) != 0) {
return 0;
}
return 1;
}
int validatedb(DATA *data) int validatedb(DATA *data)
{ {
int i, used; int i, used;
uint64_t rxsum, txsum; uint64_t rxsum, txsum;
const char *invaliddb = "Invalid database"; const char *invaliddb = "Invalid database";
if (debug) { if (debug) {
printf("validating loaded database\n"); printf("validating loaded database\n");
} }
 End of changes. 1 change blocks. 
16 lines changed or deleted 0 lines changed or added

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