]>
granicus.if.org Git - vnstat/log
Teemu Toivola [Sat, 3 Mar 2018 19:23:46 +0000 (21:23 +0200)]
documentation update
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
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
Teemu Toivola [Mon, 26 Feb 2018 21:50:32 +0000 (23:50 +0200)]
fix compiler warnings
Teemu Toivola [Mon, 26 Feb 2018 21:42:31 +0000 (23:42 +0200)]
add output sanity check tests for mostly unfilled databases
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
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
Teemu Toivola [Wed, 21 Feb 2018 21:12:36 +0000 (23:12 +0200)]
remove possible division by float zero
Teemu Toivola [Sat, 17 Feb 2018 19:05:02 +0000 (21:05 +0200)]
make number of executed tests visible
Teemu Toivola [Sat, 17 Feb 2018 18:34:08 +0000 (20:34 +0200)]
re-enable os x in travis
Teemu Toivola [Thu, 15 Feb 2018 21:55:43 +0000 (23:55 +0200)]
fix waittimesync() timestamp handling, fixes #85
Teemu Toivola [Wed, 14 Feb 2018 21:24:51 +0000 (23:24 +0200)]
add support for combining --live and --json, closes #25
Teemu Toivola [Wed, 14 Feb 2018 16:32:02 +0000 (18:32 +0200)]
add support for combining -tr and --json, closes #56
Teemu Toivola [Tue, 13 Feb 2018 20:18:03 +0000 (22:18 +0200)]
update CHANGES
Teemu Toivola [Tue, 13 Feb 2018 20:12:54 +0000 (22:12 +0200)]
minor example file cleanup
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
Teemu Toivola [Tue, 13 Feb 2018 19:54:43 +0000 (21:54 +0200)]
always show used version when debug is enabled
Teemu Toivola [Sun, 11 Feb 2018 00:39:42 +0000 (02:39 +0200)]
update CHANGES and year info, minor style cleanup
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
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
Christian Göttsche [Fri, 3 Nov 2017 09:02:07 +0000 (10:02 +0100)]
vnstat.service: add hardening and auto restart
Teemu Toivola [Mon, 9 Oct 2017 20:22:52 +0000 (23:22 +0300)]
Merge pull request #79 from vergoh/travis_fix
Fix Travis CI usage
Teemu Toivola [Mon, 9 Oct 2017 20:18:58 +0000 (23:18 +0300)]
disable osx testing in Travis due to environment issues (brew + ruby)
Teemu Toivola [Mon, 9 Oct 2017 19:47:53 +0000 (22:47 +0300)]
switch Travis execution environment
Teemu Toivola [Mon, 9 Oct 2017 19:33:21 +0000 (22:33 +0300)]
update Travis CI configuration
Teemu Toivola [Mon, 9 Oct 2017 18:39:37 +0000 (21:39 +0300)]
Merge pull request #76 from cgzones/coverity
fix issues found by coverity
Teemu Toivola [Mon, 9 Oct 2017 18:21:07 +0000 (21:21 +0300)]
Merge pull request #70 from cgzones/debian
Misspellings and compiler warnings
Teemu Toivola [Mon, 9 Oct 2017 18:12:59 +0000 (21:12 +0300)]
Merge pull request #63 from iamatacos/patch-1
Small modif to the man of vnstat.config
Christian Göttsche [Fri, 6 Oct 2017 10:55:39 +0000 (12:55 +0200)]
vnstat.service: add alias `vnstatd.service`
Christian Göttsche [Tue, 5 Sep 2017 09:23:17 +0000 (11:23 +0200)]
fix Time of check time of use issues
Found by coverity
Christian Göttsche [Tue, 5 Sep 2017 09:44:30 +0000 (11:44 +0200)]
check number of items read by fread()
Also check the filestream with ferror()
Found by coverity
Christian Göttsche [Tue, 5 Sep 2017 09:07:01 +0000 (11:07 +0200)]
fix resource leak
The file descriptor used for dup'ing stdout and stderr is not closed.
Found by coverity
Christian Göttsche [Tue, 5 Sep 2017 09:01:41 +0000 (11:01 +0200)]
fix possible not null-terminated string
fread() might not null-terminate strings when a broken database is read.
Found by covertity
Christian Göttsche [Thu, 24 Aug 2017 17:44:18 +0000 (19:44 +0200)]
fix additional compiler warnings
Wformat-truncation
Wimplicit-declaration of wcswidth() on kFreeBSD
Wdiscard-qualifiers
Christian Göttsche [Sun, 20 Aug 2017 11:49:51 +0000 (13:49 +0200)]
Fx misc compiler warnings
src/vnstat.h:7:33: warning: identifier ‘delete’ conflicts with C++ keyword [-Wc++-compat]
src/ifinfo.c:61:13: warning: request for implicit conversion from ‘void *’ to ‘char *’ not permitted in C++ [-Wc++-compat]
src/dbxml.c:110:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
src/dbjson.c:134:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
src/common.c:270:6: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
src/misc.c:309:32: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
src/ibw.c:34:5: warning: request for implicit conversion from ‘void *’ to ‘ibwnode * {aka struct ibwnode *}’ not permitted in C++ [-Wc++-compat]
src/image.c:68:17: warning: passing argument 1 of ‘colorinitcheck’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
src/dbcache.c:26:4: warning: request for implicit conversion from ‘void *’ to ‘datanode * {aka struct datanode *}’ not permitted in C++ [-Wc++-compat]
src/ifinfo.c:358:4: warning: unsuffixed float constant [-Wunsuffixed-float-constants]
src/common.c:173:14: warning: nested extern declaration of ‘timezone’ [-Wnested-externs]
src/common.c:173:14: warning: redundant redeclaration of ‘timezone’ [-Wredundant-decls]
Christian Göttsche [Sun, 20 Aug 2017 11:49:19 +0000 (13:49 +0200)]
Spelling fixes
found by Debian's lintian
ALJI Mohamed [Sun, 25 Jun 2017 07:59:10 +0000 (07:59 +0000)]
Small modif to the man of vnstat.config
Teemu Toivola [Sat, 22 Apr 2017 13:28:05 +0000 (15:28 +0200)]
Merge pull request #59 from cgzones/check
fix several warnings from tools
Teemu Toivola [Sat, 22 Apr 2017 13:18:50 +0000 (15:18 +0200)]
Merge pull request #57 from debfx/patch-1
Makefile.am: install-data-hook depends on install-exec
Teemu Toivola [Sat, 22 Apr 2017 13:03:47 +0000 (16:03 +0300)]
bump version to 1.18 beta
cgzones [Thu, 20 Apr 2017 22:35:40 +0000 (00:35 +0200)]
fix compile warnings
src/daemon.c:176:13: warning: use of non-standard escape character '\%' [-Wpedantic]
src/dbcache.c:333:33: warning: declaration shadows a variable in the global scope [-Wshadow]
cgzones [Thu, 20 Apr 2017 22:18:22 +0000 (00:18 +0200)]
fix clang-tidy issues
src/image.h:12:22: warning: macro replacement list should be enclosed in parentheses [misc-macro-parentheses]
src/misc.h:8:20: warning: all parameters should be named in a function [readability-named-parameter]
src/fs.h:7:6: warning: function 'preparevnstatdir' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name]
cgzones [Thu, 20 Apr 2017 21:58:06 +0000 (23:58 +0200)]
fix printf argument
found by cppcheck:
[src/cfg.c:66]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'.
Felix Geyer [Sun, 9 Apr 2017 19:23:49 +0000 (21:23 +0200)]
Makefile.am: install-data-hook depends on install-exec
Calling $(DESTDIR)$(bindir)/vnstat$(EXEEXT) fails when installation of this
program is not yet finished.
Author: Adrian Bunk <bunk@debian.org>
Teemu Toivola [Thu, 16 Feb 2017 20:17:51 +0000 (22:17 +0200)]
final preparations for version 1.17 release
Teemu Toivola [Tue, 7 Feb 2017 19:44:12 +0000 (21:44 +0200)]
import refactored bandwidth limit handling from sqldb branch
Teemu Toivola [Tue, 7 Feb 2017 15:53:47 +0000 (17:53 +0200)]
update FSF address in license texts
Teemu Toivola [Tue, 7 Feb 2017 15:51:19 +0000 (17:51 +0200)]
documentation update
Teemu Toivola [Tue, 7 Feb 2017 15:50:22 +0000 (17:50 +0200)]
fix console log output buffering causing log prints to not show up at least in systemd log
Teemu Toivola [Tue, 7 Feb 2017 15:48:56 +0000 (17:48 +0200)]
fix --importdb that was creating invalid timestamps, broken since 1.15, closes #55
Teemu Toivola [Tue, 27 Dec 2016 01:08:18 +0000 (03:08 +0200)]
fix cross-compilation detection, resolves #53
Teemu Toivola [Mon, 26 Dec 2016 22:41:51 +0000 (00:41 +0200)]
remove unnecessary autoconf macros, add check for cross-compiling and improve install-data-hook to not assume that the binaries can be executed in the host system, closes #53
Teemu Toivola [Sat, 24 Dec 2016 15:00:41 +0000 (17:00 +0200)]
bump version to 1.17 beta
Teemu Toivola [Sat, 24 Dec 2016 13:47:35 +0000 (15:47 +0200)]
final preparations for version 1.16 release
Teemu Toivola [Fri, 23 Dec 2016 20:14:55 +0000 (22:14 +0200)]
update documentation
Teemu Toivola [Thu, 22 Dec 2016 21:04:53 +0000 (23:04 +0200)]
rephrase install documentation
Teemu Toivola [Wed, 21 Dec 2016 16:22:57 +0000 (18:22 +0200)]
update BSD install documentation regarding libgd2 requirements, add appendix about the execution of the test suite
Teemu Toivola [Wed, 21 Dec 2016 15:35:16 +0000 (17:35 +0200)]
have separate test for systems without extern long timezone available
Teemu Toivola [Wed, 21 Dec 2016 13:54:14 +0000 (15:54 +0200)]
improve configure summary output, add checks for mbstowcs and wcswidth and modify behaviour if not available
Teemu Toivola [Tue, 20 Dec 2016 22:26:35 +0000 (00:26 +0200)]
allow enforcing database output with --force even if database content doesn't pass validation
Teemu Toivola [Tue, 20 Dec 2016 21:48:57 +0000 (23:48 +0200)]
fix compiler warning
Teemu Toivola [Tue, 20 Dec 2016 21:34:17 +0000 (23:34 +0200)]
fix Coverity findings, closes #50
Teemu Toivola [Tue, 20 Dec 2016 17:40:53 +0000 (19:40 +0200)]
improve user guidance in error situations related to the configured default interface
Teemu Toivola [Tue, 20 Dec 2016 16:18:17 +0000 (18:18 +0200)]
update documentation
Teemu Toivola [Mon, 19 Dec 2016 23:37:00 +0000 (01:37 +0200)]
more refactoring, fix compiler warnings, update database file ownership to match directory ownership if database gets created as root, should fix issues with file permissions issues if sudo gets used
Teemu Toivola [Mon, 19 Dec 2016 16:27:15 +0000 (18:27 +0200)]
refactor function file locations
Teemu Toivola [Sat, 10 Dec 2016 15:11:53 +0000 (17:11 +0200)]
add xml and json output stability tests
Teemu Toivola [Sat, 10 Dec 2016 15:01:19 +0000 (17:01 +0200)]
modify testscase to bypass possible test framework limitations and fix test errors seen in CentOS 7, actual functionality wasn't affected
Teemu Toivola [Mon, 7 Nov 2016 21:53:33 +0000 (23:53 +0200)]
fix daemon startup instructions in INSTALL documentation
Teemu Toivola [Sat, 10 Sep 2016 21:33:50 +0000 (00:33 +0300)]
fix value range documentation for PollInterval, closes #46
Teemu Toivola [Sat, 23 Apr 2016 23:45:56 +0000 (02:45 +0300)]
improve daemon startup prints and log access verification
Teemu Toivola [Sat, 23 Apr 2016 23:07:25 +0000 (02:07 +0300)]
print daemon version and pid once started
Teemu Toivola [Tue, 19 Apr 2016 20:40:37 +0000 (23:40 +0300)]
fix ident and improve condition content ordering
Teemu Toivola [Sat, 16 Apr 2016 22:49:06 +0000 (01:49 +0300)]
validate database after file read and before write
Teemu Toivola [Fri, 15 Apr 2016 20:05:26 +0000 (23:05 +0300)]
use common print functionality in validatedb() to allow error logging when needed
Teemu Toivola [Fri, 15 Apr 2016 19:51:39 +0000 (22:51 +0300)]
update documentation
Teemu Toivola [Fri, 15 Apr 2016 19:30:49 +0000 (22:30 +0300)]
fix -l mode table fit when using IEC binary prefixes for traffic rate, refactor output implementation
Teemu Toivola [Thu, 14 Apr 2016 20:14:59 +0000 (23:14 +0300)]
add RateUnitMode configuration keyword for selecting between binary and decimal (default) traffic rate prefixes, improve function and variable names
Teemu Toivola [Thu, 14 Apr 2016 19:01:20 +0000 (22:01 +0300)]
align variable name with configuration keyword name
Teemu Toivola [Tue, 12 Apr 2016 21:12:52 +0000 (00:12 +0300)]
fix bad function name
Teemu Toivola [Tue, 12 Apr 2016 21:09:59 +0000 (00:09 +0300)]
refactor rate calculations, fix use of correct prefix symbol, closes #41
Teemu Toivola [Tue, 12 Apr 2016 19:19:57 +0000 (22:19 +0300)]
fix potentially unassigned variable use, add check test result files to ignore list
Teemu Toivola [Tue, 12 Jan 2016 17:45:21 +0000 (19:45 +0200)]
update binary paths in BSD and OS X documentation, closes #37
Teemu Toivola [Wed, 23 Dec 2015 10:24:58 +0000 (12:24 +0200)]
Merge pull request #35 from rrebello/image-output-option
configure.ac: add option to disable image output and improve gd library availability check
Rodrigo Rebello [Tue, 22 Dec 2015 20:02:22 +0000 (18:02 -0200)]
configure.ac: add option to disable image output
Even when the gd library is present, it may be desirable to not build
'vnstati' as image output is an optional feature.
Also, when testing for the gd library, use gdImagePng() instead of
gdImageLine() since it's possible that the installed gd library doesn't
have PNG support. In such cases, the test in the configure script passed
(because gdImageLine() is always present), but the build failed with:
src/vnstati.o: In function `writeoutput':
vnstati.c:(.text+0x3fc): undefined reference to `gdImagePng'
collect2: error: ld returned 1 exit status
Teemu Toivola [Tue, 22 Dec 2015 16:21:43 +0000 (18:21 +0200)]
include UNINSTALL in the tar.gz file, rephrase its content
Teemu Toivola [Mon, 21 Dec 2015 22:22:15 +0000 (00:22 +0200)]
bump version to 1.16 beta
Teemu Toivola [Mon, 21 Dec 2015 22:08:08 +0000 (00:08 +0200)]
final preparations for version 1.15 release
Teemu Toivola [Mon, 21 Dec 2015 21:41:12 +0000 (23:41 +0200)]
improve output formatting
Teemu Toivola [Mon, 21 Dec 2015 21:19:22 +0000 (23:19 +0200)]
update man pages for 1.15, add restriction documentation for long date formats
Teemu Toivola [Tue, 8 Dec 2015 20:30:42 +0000 (22:30 +0200)]
add AM_MAINTAINER_MODE to configure.ac
Teemu Toivola [Tue, 8 Dec 2015 19:03:54 +0000 (21:03 +0200)]
fix typo in version string, provide some setup information after running configure, update files with more recent version of autotools
Teemu Toivola [Mon, 7 Dec 2015 21:36:36 +0000 (23:36 +0200)]
don't list interfaces having names longer than what can be handled, add tests with interface names longer that what the kernel supports
Teemu Toivola [Mon, 7 Dec 2015 21:14:05 +0000 (23:14 +0200)]
fix possible buffer overflow in /proc/net/dev parsing, closes #34
Teemu Toivola [Sat, 5 Dec 2015 22:35:20 +0000 (00:35 +0200)]
update changelog
Teemu Toivola [Sat, 5 Dec 2015 22:11:21 +0000 (00:11 +0200)]
add --alwaysadd option to daemon to allow automatic addition of previously unseen interfaces during startup even if the database directory has already been populated, new interfaces will also get added during runtime, closes #31
Teemu Toivola [Sat, 5 Dec 2015 20:39:51 +0000 (22:39 +0200)]
ignore test binary
Teemu Toivola [Sat, 5 Dec 2015 19:09:46 +0000 (21:09 +0200)]
improve database validation
Teemu Toivola [Mon, 26 Oct 2015 16:02:55 +0000 (18:02 +0200)]
add release target to makefile, remove email address from configure.ac
Teemu Toivola [Sat, 24 Oct 2015 21:06:00 +0000 (00:06 +0300)]
fix vnstatd to be installed to sbin instead of bin