]> granicus.if.org Git - vnstat/log
vnstat
6 years agoavoid having some daemon related tests Linux specific
Teemu Toivola [Sun, 18 Mar 2018 21:26:16 +0000 (23:26 +0200)]
avoid having some daemon related tests Linux specific

6 years agoadd db_validate() tests and info prints
Teemu Toivola [Sun, 18 Mar 2018 21:07:24 +0000 (23:07 +0200)]
add db_validate() tests and info prints

6 years agoimprove database output tests
Teemu Toivola [Sun, 18 Mar 2018 20:06:42 +0000 (22:06 +0200)]
improve database output tests

6 years agodefine one common datetime format in common.h
Teemu Toivola [Sun, 18 Mar 2018 17:56:51 +0000 (19:56 +0200)]
define one common datetime format in common.h

6 years agoadd datacache_status() tests
Teemu Toivola [Sun, 18 Mar 2018 17:51:54 +0000 (19:51 +0200)]
add datacache_status() tests

6 years agoadd processifinfo() tests
Teemu Toivola [Sun, 18 Mar 2018 16:50:48 +0000 (18:50 +0200)]
add processifinfo() tests

6 years agoadd cleanremovedinterfaces() test
Teemu Toivola [Sat, 17 Mar 2018 16:17:44 +0000 (18:17 +0200)]
add cleanremovedinterfaces() test

6 years agoadd more complex processdatacache() test
Teemu Toivola [Sat, 17 Mar 2018 15:48:35 +0000 (17:48 +0200)]
add more complex processdatacache() test

6 years agoadd handledatabaseerror() tests
Teemu Toivola [Sat, 17 Mar 2018 14:51:13 +0000 (16:51 +0200)]
add handledatabaseerror() tests

6 years agoadd detectboot() tests and improve function error handling
Teemu Toivola [Fri, 16 Mar 2018 23:09:27 +0000 (01:09 +0200)]
add detectboot() tests and improve function error handling

6 years agorefactor and enable sighup handling test, mark some functions still lacking tests
Teemu Toivola [Fri, 16 Mar 2018 22:31:47 +0000 (00:31 +0200)]
refactor and enable sighup handling test, mark some functions still lacking tests

6 years agosplit signal handling test to one test per signal
Teemu Toivola [Fri, 16 Mar 2018 21:44:02 +0000 (23:44 +0200)]
split signal handling test to one test per signal

6 years agofix occasionally failing tests, fix invalid instruction provided by daemon after...
Teemu Toivola [Fri, 16 Mar 2018 19:33:42 +0000 (21:33 +0200)]
fix occasionally failing tests, fix invalid instruction provided by daemon after first start and bump beta version

6 years agoupdate install documentation
Teemu Toivola [Thu, 15 Mar 2018 20:26:27 +0000 (22:26 +0200)]
update install documentation

6 years agorewrite UNINSTALL
Teemu Toivola [Thu, 15 Mar 2018 19:41:11 +0000 (21:41 +0200)]
rewrite UNINSTALL

6 years agoupdate documentation
Teemu Toivola [Wed, 14 Mar 2018 20:57:00 +0000 (22:57 +0200)]
update documentation

6 years agoremove references to deleted files
Teemu Toivola [Tue, 13 Mar 2018 21:31:30 +0000 (23:31 +0200)]
remove references to deleted files

6 years agoadd hourly list and 5 minute list image outputs
Teemu Toivola [Tue, 13 Mar 2018 21:27:09 +0000 (23:27 +0200)]
add hourly list and 5 minute list image outputs

6 years agoupdate README.md
Teemu Toivola [Tue, 13 Mar 2018 21:03:58 +0000 (23:03 +0200)]
update README.md

6 years agoremove INSTALL_OSX as these instructions haven't been verified in a long time and...
Teemu Toivola [Tue, 13 Mar 2018 21:01:51 +0000 (23:01 +0200)]
remove INSTALL_OSX as these instructions haven't been verified in a long time and aren't likely to work with more recent OS X releases

6 years agofix vertical bar scaling in text mode hourly output graph, broken due to improper...
Teemu Toivola [Tue, 13 Mar 2018 15:30:17 +0000 (17:30 +0200)]
fix vertical bar scaling in text mode hourly output graph, broken due to improper clang warning fix

6 years agoadd hourly list and 5 minute list outputs, fix textual bar generation and write testc...
Teemu Toivola [Mon, 12 Mar 2018 17:52:00 +0000 (19:52 +0200)]
add hourly list and 5 minute list outputs, fix textual bar generation and write testcase to avoid it breaking again, closes #32

6 years agoadd -I/usr/local/include to CFLAGS and -L/usr/local/lib to LDFLAGS by default unless...
Teemu Toivola [Sun, 11 Mar 2018 20:43:45 +0000 (22:43 +0200)]
add -I/usr/local/include to CFLAGS and -L/usr/local/lib to LDFLAGS by default unless disabled by using --disable-extra-paths with configure

6 years agoadd database version validation
Teemu Toivola [Sun, 11 Mar 2018 00:21:41 +0000 (02:21 +0200)]
add database version validation

6 years agoremove invalid TODO comment
Teemu Toivola [Sat, 10 Mar 2018 23:53:32 +0000 (01:53 +0200)]
remove invalid TODO comment

6 years agoadd function execution timing debug to json and xml outputs
Teemu Toivola [Sat, 10 Mar 2018 23:46:53 +0000 (01:46 +0200)]
add function execution timing debug to json and xml outputs

6 years agouse ISO date formats by default
Teemu Toivola [Sat, 10 Mar 2018 23:44:14 +0000 (01:44 +0200)]
use ISO date formats by default

6 years agoreplace asctime() with strftime()
Teemu Toivola [Sat, 10 Mar 2018 23:23:05 +0000 (01:23 +0200)]
replace asctime() with strftime()

6 years agoadd missing variable init and teardown to waittimesync() tests
Teemu Toivola [Sat, 10 Mar 2018 22:56:30 +0000 (00:56 +0200)]
add missing variable init and teardown to waittimesync() tests

6 years agoadd tests for waittimesync()
Teemu Toivola [Sat, 10 Mar 2018 17:55:07 +0000 (19:55 +0200)]
add tests for waittimesync()

6 years agoMerge branch 'travis_warnings'
Teemu Toivola [Sat, 10 Mar 2018 17:10:32 +0000 (19:10 +0200)]
Merge branch 'travis_warnings'

6 years agoadd mising no- prefix to parameters
Teemu Toivola [Sat, 10 Mar 2018 17:05:06 +0000 (19:05 +0200)]
add mising no- prefix to parameters

6 years agomore warning scope reductions for osx in travis
Teemu Toivola [Sat, 10 Mar 2018 16:59:26 +0000 (18:59 +0200)]
more warning scope reductions for osx in travis

6 years agoreduce scope of osx warnings in travis to avoid log getting flooded by few specific...
Teemu Toivola [Sat, 10 Mar 2018 16:47:30 +0000 (18:47 +0200)]
reduce scope of osx warnings in travis to avoid log getting flooded by few specific warnings from check framework files

6 years agodrop --enable-werror in travis for osx as it appears to trigger errors from check...
Teemu Toivola [Sat, 10 Mar 2018 16:36:14 +0000 (18:36 +0200)]
drop --enable-werror in travis for osx as it appears to trigger errors from check framework files

6 years agoApple has extern long timezone in time.h
Teemu Toivola [Sat, 10 Mar 2018 16:19:52 +0000 (18:19 +0200)]
Apple has extern long timezone in time.h

6 years agoadd --enable-werror parameter for configure and use it in travis
Teemu Toivola [Sat, 10 Mar 2018 16:06:58 +0000 (18:06 +0200)]
add --enable-werror parameter for configure and use it in travis

6 years agomodify environment setup
Teemu Toivola [Fri, 9 Mar 2018 22:56:05 +0000 (00:56 +0200)]
modify environment setup

6 years agoclang specific parameters and warning to errors as travis has only green/red build...
Teemu Toivola [Fri, 9 Mar 2018 22:38:32 +0000 (00:38 +0200)]
clang specific parameters and warning to errors as travis has only green/red build end status options

6 years agorefactor sql date generation handling, fixes last clang warnings (padding excluded)
Teemu Toivola [Fri, 9 Mar 2018 22:12:38 +0000 (00:12 +0200)]
refactor sql date generation handling, fixes last clang warnings (padding excluded)

6 years agoimprove data cleanup debug prints
Teemu Toivola [Tue, 6 Mar 2018 20:34:05 +0000 (22:34 +0200)]
improve data cleanup debug prints

6 years agoreturn TimeSyncWait functionality
Teemu Toivola [Tue, 6 Mar 2018 20:31:05 +0000 (22:31 +0200)]
return TimeSyncWait functionality

6 years agofix and improve config validator syntax
Teemu Toivola [Tue, 6 Mar 2018 19:55:49 +0000 (21:55 +0200)]
fix and improve config validator syntax

6 years agoimprove code readability and remove -Wformat-non-iso clang warning
Teemu Toivola [Tue, 6 Mar 2018 18:17:56 +0000 (20:17 +0200)]
improve code readability and remove -Wformat-non-iso clang warning

6 years agoadd clang padding warning ignores to legacy database format definition in order to...
Teemu Toivola [Mon, 5 Mar 2018 20:45:23 +0000 (22:45 +0200)]
add clang padding warning ignores to legacy database format definition in order to avoid anyone having sudden urges to fix possible alignment issues

6 years agoimprove define readability
Teemu Toivola [Mon, 5 Mar 2018 20:32:50 +0000 (22:32 +0200)]
improve define readability

6 years agoadd check for __clang__ being defined as gcc raises warnings for clang specific pragmas
Teemu Toivola [Mon, 5 Mar 2018 20:17:15 +0000 (22:17 +0200)]
add check for __clang__ being defined as gcc raises warnings for clang specific pragmas

6 years agofix clang warnings from tests
Teemu Toivola [Mon, 5 Mar 2018 20:05:44 +0000 (22:05 +0200)]
fix clang warnings from tests

6 years agoignore clang _XOPEN_SOURCE warning as it doesn't appear to be avoidable
Teemu Toivola [Mon, 5 Mar 2018 20:05:05 +0000 (22:05 +0200)]
ignore clang _XOPEN_SOURCE warning as it doesn't appear to be avoidable

6 years agomore warning fixes
Teemu Toivola [Mon, 5 Mar 2018 19:32:37 +0000 (21:32 +0200)]
more warning fixes

6 years agomore warning fixes
Teemu Toivola [Mon, 5 Mar 2018 19:28:10 +0000 (21:28 +0200)]
more warning fixes

6 years agofix gcc warning
Teemu Toivola [Mon, 5 Mar 2018 18:33:03 +0000 (20:33 +0200)]
fix gcc warning

6 years agofix some clang warnings
Teemu Toivola [Mon, 5 Mar 2018 18:11:13 +0000 (20:11 +0200)]
fix some clang warnings

6 years agobring back one disabled test, discard the other due to too similar content
Teemu Toivola [Mon, 5 Mar 2018 15:42:47 +0000 (17:42 +0200)]
bring back one disabled test, discard the other due to too similar content

6 years agofix cppcheck and clang warnings
Teemu Toivola [Sun, 4 Mar 2018 20:54:44 +0000 (22:54 +0200)]
fix cppcheck and clang warnings

6 years agoadd development status to README.md
Teemu Toivola [Sun, 4 Mar 2018 20:26:19 +0000 (22:26 +0200)]
add development status to README.md

6 years agowrap README.md lines as GitHub appears to be happy to unwrap sections back
Teemu Toivola [Sun, 4 Mar 2018 20:12:42 +0000 (22:12 +0200)]
wrap README.md lines as GitHub appears to be happy to unwrap sections back

6 years agomerge sqldb branch, vnStat 2.0 on master begins here
Teemu Toivola [Sun, 4 Mar 2018 20:06:48 +0000 (22:06 +0200)]
merge sqldb branch, vnStat 2.0 on master begins here

6 years agobump version to 1.19 beta
Teemu Toivola [Sun, 4 Mar 2018 17:50:27 +0000 (19:50 +0200)]
bump version to 1.19 beta

6 years agoadjust time sync check to not complain when daemon is stopped and started during... v1.18
Teemu Toivola [Sun, 4 Mar 2018 17:32:38 +0000 (19:32 +0200)]
adjust time sync check to not complain when daemon is stopped and started during the same second (service restart scenario)

6 years agofinal preparations for version 1.18 release
Teemu Toivola [Sun, 4 Mar 2018 17:14:55 +0000 (19:14 +0200)]
final preparations for version 1.18 release

6 years agoupdate example configuration file
Teemu Toivola [Sun, 4 Mar 2018 17:03:08 +0000 (19:03 +0200)]
update example configuration file

6 years agoMerge pull request #92 from cgzones/cppcheck
Teemu Toivola [Sun, 4 Mar 2018 16:14:33 +0000 (18:14 +0200)]
Merge pull request #92 from cgzones/cppcheck

fix cppcheck note

6 years agoMerge pull request #91 from cgzones/warnings
Teemu Toivola [Sun, 4 Mar 2018 16:14:19 +0000 (18:14 +0200)]
Merge pull request #91 from cgzones/warnings

fix several clang compiler warnings

6 years agofix cppcheck note
Christian Göttsche [Sun, 4 Mar 2018 13:05:59 +0000 (14:05 +0100)]
fix cppcheck note

[src/dbcache.c:166]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.

6 years agofix clang -Wmissing-variable-declarations
Christian Göttsche [Thu, 1 Mar 2018 15:46:29 +0000 (16:46 +0100)]
fix clang -Wmissing-variable-declarations

./src/common.h:331:6: error: no previous extern declaration for non-static variable 'data' [-Werror,-Wmissing-variable-declarations]
DATA data;
./src/common.h:332:5: error: no previous extern declaration for non-static variable 'cfg' [-Werror,-Wmissing-variable-declarations]
CFG cfg;
./src/common.h:333:8: error: no previous extern declaration for non-static variable 'ifinfo' [-Werror,-Wmissing-variable-declarations]
IFINFO ifinfo;
./src/common.h:334:6: error: no previous extern declaration for non-static variable 'errorstring' [-Werror,-Wmissing-variable-declarations]
char errorstring[512];
./src/common.h:335:10: error: no previous extern declaration for non-static variable 'ifacebw' [-Werror,-Wmissing-variable-declarations]
ibwnode *ifacebw;
./src/common.h:336:5: error: no previous extern declaration for non-static variable 'debug' [-Werror,-Wmissing-variable-declarations]
int debug;
 ./src/common.h:337:5: error: no previous extern declaration for non-static variable 'noexit' [-Werror,-Wmissing-variable-declarations]
int noexit;      /* = running as daemon if 2 */
./src/common.h:338:5: error: no previous extern declaration for non-static variable 'intsignal' [-Werror,-Wmissing-variable-declarations]
int intsignal;
./src/common.h:339:5: error: no previous extern declaration for non-static variable 'pidfile' [-Werror,-Wmissing-variable-declarations]
int pidfile;
./src/common.h:340:5: error: no previous extern declaration for non-static variable 'disableprints' [-Werror,-Wmissing-variable-declarations]
int disableprints;
./src/dbcache.h:24:11: error: no previous extern declaration for non-static variable 'dataptr' [-Werror,-Wmissing-variable-declarations]
datanode *dataptr;

6 years agofix clang -Wfloat-conversion
Christian Göttsche [Thu, 1 Mar 2018 15:41:40 +0000 (16:41 +0100)]
fix clang -Wfloat-conversion

src/ifinfo.c:358:18: error: implicit conversion turns floating-point number into integer: 'float' to 'uint64_t' (aka 'unsigned long') [-Werror,-Wfloat-conversion]
                        maxtransfer = ceilf((maxbw/8.0f)*interval*1.1f);

6 years agofix clang -Wsign-conversion
Christian Göttsche [Thu, 1 Mar 2018 15:26:18 +0000 (16:26 +0100)]
fix clang -Wsign-conversion

src/ifinfo.c:329:31: error: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'unsigned long' [-Werror,-Wsign-conversion]
                if (data.btime < (btime-cfg.bvar)) {

6 years agofix clang -Wshorten-64-to-32
Christian Göttsche [Thu, 1 Mar 2018 14:52:38 +0000 (15:52 +0100)]
fix clang -Wshorten-64-to-32

src/common.c:190:37: error: implicit conversion loses integer precision: 'long' to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
                return data.lastupdated-mktime(&d)+timezone;
src/common.c:255:8: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
        len = strlen(s);
src/cfg.c:676:17: error: implicit conversion loses integer precision: 'long' to 'int32_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
                *cset->loci = strtol(value, (char **)NULL, 0);
src/ibw.c:259:12: error: implicit conversion loses integer precision: 'long' to 'int32_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
                ivalue = strtol(value, (char **)NULL, 0);
src/fs.c:50:8: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
        len = strlen(tmp);
src/fs.c:96:8: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
        len = strlen(dir);
src/image.c:165:47: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
                gdImageString(ic->im, gdFontGetTiny(), width-(strlen(datestring)*gdFontGetTiny()->w+12), 9+ic->showedge, (unsigned char*)datestring, ic->cheaderdate);

6 years agofix clang -Wbad-function-cast
Christian Göttsche [Thu, 1 Mar 2018 14:45:50 +0000 (15:45 +0100)]
fix clang -Wbad-function-cast

src/misc.c:370:62: error: cast from function call of type 'uint64_t' (aka 'unsigned long') to non-matching type 'float' [-Werror,-Wbad-function-cast]
                snprintf(buffer, 64, "%"DECCONV"*.2f %s", len, rate/(float)getunitdivisor(unitmode, 4), getrateunitprefix(unitmode, 4));
src/misc.c:372:62: error: cast from function call of type 'uint64_t' (aka 'unsigned long') to non-matching type 'float' [-Werror,-Wbad-function-cast]
                snprintf(buffer, 64, "%"DECCONV"*.2f %s", len, rate/(float)getunitdivisor(unitmode, 3), getrateunitprefix(unitmode, 3));
src/misc.c:374:62: error: cast from function call of type 'uint64_t' (aka 'unsigned long') to non-matching type 'float' [-Werror,-Wbad-function-cast]
                snprintf(buffer, 64, "%"DECCONV"*.2f %s", len, rate/(float)getunitdivisor(unitmode, 2), getrateunitprefix(unitmode, 2));
src/misc.c:376:70: error: cast from function call of type 'uint64_t' (aka 'unsigned long') to non-matching type 'float' [-Werror,-Wbad-function-cast]
                snprintf(buffer, 64, "%"DECCONV"*.*f %s", len, declen, rate/(float)getunitdivisor(unitmode, 1), getrateunitprefix(unitmode, 1));

6 years agofix clang -Wconversion
Christian Göttsche [Thu, 1 Mar 2018 14:41:31 +0000 (15:41 +0100)]
fix clang -Wconversion

src/dbcache.c:38:12: error: implicit conversion loses integer precision: 'int' to 'short' [-Werror,-Wconversion]
        n->sync = sync;

6 years agoadd prerequisites section to INSTALL files, closes #58
Teemu Toivola [Sat, 3 Mar 2018 23:08:10 +0000 (01:08 +0200)]
add prerequisites section to INSTALL files, closes #58

6 years agodocumentation update
Teemu Toivola [Sat, 3 Mar 2018 19:23:46 +0000 (21:23 +0200)]
documentation update

6 years agoadd README in Markdown format with command instructions on how to get started
Teemu Toivola [Sat, 3 Mar 2018 18:25:50 +0000 (20:25 +0200)]
add README in Markdown format with command instructions on how to get started

6 years agoadd make target for testing man pages for errors and warnings, most likely not shell...
Teemu Toivola [Fri, 2 Mar 2018 23:03:53 +0000 (01:03 +0200)]
add make target for testing man pages for errors and warnings, most likely not shell agnostic and not intended as dependency for the check target

6 years agofix compiler warnings
Teemu Toivola [Mon, 26 Feb 2018 21:50:32 +0000 (23:50 +0200)]
fix compiler warnings

6 years agoadd output sanity check tests for mostly unfilled databases
Teemu Toivola [Mon, 26 Feb 2018 21:42:31 +0000 (23:42 +0200)]
add output sanity check tests for mostly unfilled databases

6 years agoadd section separators for improving readabilty of the vnstat -h output, configurable...
Teemu Toivola [Mon, 26 Feb 2018 21:36:52 +0000 (23:36 +0200)]
add section separators for improving readabilty of the vnstat -h output, configurable using HourlySectionStyle

6 years agoadd options for controlling the number of decimals used in outputs, reduce the defaul...
Teemu Toivola [Mon, 26 Feb 2018 20:58:01 +0000 (22:58 +0200)]
add options for controlling the number of decimals used in outputs, reduce the default number of decimals used in hourly output from 2 to 1 in order to improve readability

6 years agoremove possible division by float zero
Teemu Toivola [Wed, 21 Feb 2018 21:12:36 +0000 (23:12 +0200)]
remove possible division by float zero

6 years agoremove possible division by float zero
Teemu Toivola [Wed, 21 Feb 2018 21:11:46 +0000 (23:11 +0200)]
remove possible division by float zero

6 years agomake number of executed tests visible
Teemu Toivola [Sat, 17 Feb 2018 19:05:02 +0000 (21:05 +0200)]
make number of executed tests visible

6 years agore-enable os x in travis
Teemu Toivola [Sat, 17 Feb 2018 18:34:08 +0000 (20:34 +0200)]
re-enable os x in travis

6 years agofix waittimesync() timestamp handling, fixes #85
Teemu Toivola [Thu, 15 Feb 2018 21:55:43 +0000 (23:55 +0200)]
fix waittimesync() timestamp handling, fixes #85

6 years agoadd support for combining --live and --json, closes #25
Teemu Toivola [Wed, 14 Feb 2018 21:24:51 +0000 (23:24 +0200)]
add support for combining --live and --json, closes #25

6 years agoadd support for combining -tr and --json, closes #56
Teemu Toivola [Wed, 14 Feb 2018 16:32:02 +0000 (18:32 +0200)]
add support for combining -tr and --json, closes #56

6 years agoupdate CHANGES
Teemu Toivola [Tue, 13 Feb 2018 20:18:03 +0000 (22:18 +0200)]
update CHANGES

6 years agominor example file cleanup
Teemu Toivola [Tue, 13 Feb 2018 20:12:54 +0000 (22:12 +0200)]
minor example file cleanup

6 years agoMerge pull request #80 from cgzones/systemd_hardening
Teemu Toivola [Tue, 13 Feb 2018 19:58:44 +0000 (21:58 +0200)]
Merge pull request #80 from cgzones/systemd_hardening

vnstat.service: add hardening and auto restart

6 years agoalways show used version when debug is enabled
Teemu Toivola [Tue, 13 Feb 2018 19:54:43 +0000 (21:54 +0200)]
always show used version when debug is enabled

6 years agofix compilers warnings found in tests
Teemu Toivola [Sun, 11 Feb 2018 13:08:26 +0000 (15:08 +0200)]
fix compilers warnings found in tests

6 years agoupdate CHANGES and year info, minor style cleanup
Teemu Toivola [Sun, 11 Feb 2018 00:39:42 +0000 (02:39 +0200)]
update CHANGES and year info, minor style cleanup

6 years agoadd rtc sanity check and sync wait to daemon startup, wait duration can be changed...
Teemu Toivola [Sun, 11 Feb 2018 00:13:09 +0000 (02:13 +0200)]
add rtc sanity check and sync wait to daemon startup, wait duration can be changed from the configuration file, resolves #85

6 years agoadd optional parameter to --oneline output for forcing fields to output in bytes
Teemu Toivola [Fri, 9 Feb 2018 23:03:28 +0000 (01:03 +0200)]
add optional parameter to --oneline output for forcing fields to output in bytes

6 years agoavoid possible division by zero
Teemu Toivola [Fri, 9 Feb 2018 22:33:10 +0000 (00:33 +0200)]
avoid possible division by zero

6 years agoadd task duration measurement for debug purposes
Teemu Toivola [Wed, 7 Feb 2018 21:19:23 +0000 (23:19 +0200)]
add task duration measurement for debug purposes

6 years agoflush data from cache to database using one transaction, this results in a significan...
Teemu Toivola [Mon, 5 Feb 2018 22:44:26 +0000 (00:44 +0200)]
flush data from cache to database using one transaction, this results in a significant reduction in disk i/o especially when monitoring multiple interfaces

6 years agoimprove errorstring handling with timestamp, fix legacy database import usage when...
Teemu Toivola [Mon, 5 Feb 2018 21:32:03 +0000 (23:32 +0200)]
improve errorstring handling with timestamp, fix legacy database import usage when --alwaysadd was used, don't always try to open database in rw mode when write access isn't needed, add base for longer transactions

6 years agoavoid monitoring and storing information of interfaces that don't produce any data
Teemu Toivola [Tue, 30 Jan 2018 20:43:42 +0000 (22:43 +0200)]
avoid monitoring and storing information of interfaces that don't produce any data

6 years agoremove line changes from log prints
Teemu Toivola [Tue, 30 Jan 2018 19:21:27 +0000 (21:21 +0200)]
remove line changes from log prints