forked from vergoh/vnstat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
238 lines (195 loc) · 9.4 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
1.13 / <not released yet>
- Fix: getgroup() test in Debian GNU/kFreeBSD (patch by Felix Geyer)
- Dynamic unit selection in hourly output instead of being fixed to KiB
- New options in image output (vnstati)
* -nl / --nolegend for hiding the rx/tx legend
* --altdate for using alternative date and time text location
* --headertext for using custom text string in image header section
- Add legend to hourly output image
1.12 / 30-Aug-14
- Fix: Memory allocation when zero interfaces are available, also lo needed
to be missing in order to trigger this leak
- Fix: Rebuild total indexing (thanks to William Epp for reporting this)
- Fix: Some error situations could leave database file open until the end
of command execution
- Fix: Live traffic meter occasionally showing higher minimum than average
in end statistics (Debian Bug #687812)
- Fix: Setting locale when none is specified in config (Debian Bug #606397)
- Fix: Cppcheck findings (may fix Debian Bug #692330)
- Improve traffic meter output accuracy
- Add tests and debug compilation target
- Remove use of -D parameter in Makefile install commands in order to
improve cross-compilation support
- Set CFLAGS in Makefiles only when not already defined
- Add support for database import from text file (--importdb)
(based on patch by Tilmann Bubeck)
- Rename --dumpdb to --exportdb
- Add example systemd service file
- Add example launchd plist file for OS X
- Use ISO YYYY-MM-DD date format timestamps if logfile is used
- Improve daemon startup prints
- Add parameters for changing daemon process user and group
- Add example upstart job configuration file (thanks to Cameron Norman)
- Create database, pid and log dirs during daemon startup if necessary
- Update ownership of database, log and pid files if needed during daemon
startup if started as root and configured to change process user and group
- Remove cron update related example files and documentation, the cron
update method should be considered as deprecated
- --create parameter for database creation
1.11 / 1-Jun-11
- Fix: Memory allocation was miscalculated when creating interface list from
/sys/class/net when /proc/net/dev wasn't available which in turn could
crash the daemon
- Fix: Daemon database cache could remain empty after a -HUP signal
- Fix: Don't make temp directory in vnstat.cgi writable for everyone
- Import GNU/kFreeBSD support from Debian
(#608963, patch by Mats Erik Andersson)
- Remove usage of GNU only '-D' option for install for BSD in Makefile
- The daemon now automatically creates databases for available interfaces
if no databases are found during startup
1.10 / 2-Jan-10
- Fix: Buffer overflow was possible in hourly image output when RateUnit=1
and HourlyRate=1
- Fix: Minor memory leak was possible in the handling of HUP signal in daemon
- Fix: Graphical elements weren't correctly aligned in summary image
when header wasn't visible (-nh)
- Fix: --delete didn't work
- Possibility to merge statistics from several databases and save
the end result to a new database (--mergesaved)
- Added validation of database cache in daemon in order to be more robust
in case of system memory corruption
- Support for --style to -l (live mode)
- Alternative print mode to -l (live mode) with optional parameter
- Present options and elements in man pages in alphabetical order
- Code cleanup
1.9 / 12-Sep-09
- Fix: TrafficlessDays configuration option was enabled when set to zero
when it should have been disabled
- Fix: MonthRotate setting was getting ignored for the first month if
the database is created when day of month < MonthRotate value
- Configurable summary layout in image output (1.7 <> 1.8 layouts)
- --oneline, a simple parseable one line output
- --transparent for setting image background transparency from the
command line
- --delete for deleting databases and stopping monitoring, doesn't require
restarting the daemon
- A database write can be configure to occur after interface status changes
- Different database write interval can be configure to be used when
all monitored interfaces are offline
- Better configurability for the content of outputs, including a narrow
output for space limited terminals (OutputStyle and --style)
- Code cleanup
- New configuration file settings:
OutputStyle, SummaryLayout, SummaryRate, SaveOnStatusChange,
OfflineSaveInterval
1.8 / 1-Aug-09
- Fix: OpenBSD print issues (was: ' used for formatting in sprintf)
- Fix: Monthly estimate for February during a leap year was wrong
- Fix: 'make install' didn't install the config file is $(DESTDIR) was used
- Traffic of current and previous months added to summary
- Increased accuracy of monthly estimate calculation
- Traffic rates can be made visible and the shown unit is configurable
as bits or bytes
- New summary layout in image output
- Image output can have the background color set as transparent
- Possibility to merge data from several interfaces to one output with
interface1+interface2 syntax
- -s / --sync parameter added to daemon
- --dbdir and --locale parameters added
- Outputs now use system locale by default and formatting of dates follow
the locale setting unless configured otherwise
- New configuration file settings:
ShowRate, RateUnit, TrafficlessDays, HourlyRate, TransparentBg
1.7 / 12-Apr-09
- Fix: Timezone changes shouldn't cause a flood of errors anymore
- Fix: Statvfs used instead of statfs for BSD compatibility
(Thanks to Mark Mitchell for pointing this out)
- Fix: Makefile didn't properly support LDFLAGS and -lm was misplaced
- Fix: MonthRotate value in config wasn't used
- Fix: Unreadable configuration file doesn't cause a segmentation fault
- Fix: /proc/net/dev parser didn't see the difference between eth10 and eth1
- Fix: Updating a database from two of more processes at the same time
was able to sometimes cause data loss
- Fix: Estimates are calculated based on last database update
- Fix: Each interface update had a possibility of losing 1023 bytes of
traffic at most due to improper rounding
(Thanks to Michael Berlin for suggesting a suitable correction)
- Daemon support as alternative for cron based updates
- PNG image output (hourly rate based on patch by Sergio Ammirata)
- XML output
- BSD support
- Diskspace check can be disabled from configuration file
- IEC standard prefixes (KiB/MiB/GiB/TiB)
- List of available interfaces if wrong of unavailable interface is selected
1.6 / 1-Jan-08
- Fix: Segmentation fault when environment variable "HOME" wasn't defined,
this broke most CGI and PHP scripts that used vnStat
- Support for /sys/class/net/* if /proc/net/dev is unavailable
- Config file parser redesigned
- --config parameter for selecting config file
- Consistent exit status for all operations (0 for success, 1 for error)
- Improved file locking
- Man page restrictions paragraph updated
- Minor non-visible fixes and code cleanup
1.5 / 3-Dec-07
- Fix: compile time warnings solved
- Fix: kernel test is now more verbose
- Fix: more informative error messages
- Fix: possible division by zero for traffic estimates right after midnight
- Fix: interface names longer than 6 chars (patch by Jan Schmidle)
- Realtime transfer rate mode
- Automatic 32bit/64bit counter detection
- Config file support
- Internal database backups and locking
- More visuals in outputs
- Adaptive units (kB, MB, GB, TB)
- Possibility to sync counters without counting traffic
- Maximum bandwidth of interfaces can be set
1.4 / 26-Mar-04
- Fix: major output problems when compiled with some compilers
(thanks to DukePyrolator for reporting this bug and
Juha / vlu for testing the patch)
- Fix: month rotation if database isn't updated every day
- Minor non-visible fixes and code cleanup
1.3 / 8-Mar-04
- Fix: support for 64bit counters
- Fix: 'yesterday' was showing 01.01. with new databases
- Fix: free space warning changed from 1% to 1MB
- Fix: minor security exploit
- A man page has been included
- Hourly output with textgraphical view
- kBs are visible when traffic is under 1000 MB
- Webpage moved to http://humdi.net/vnstat/
- Minor visual updates
1.2 / 7-Oct-03
- Changed file paths to conform with FHS (http://www.pathname.com/fhs/)
/usr/local/bin/vnstat -> /usr/bin/vnstat
/var/spool/vnstat -> /var/lib/vnstat
- Added FAQ
- Included sample scripts for pppd users
- Support for 64bit counters in /proc/net/dev
(Thanks to Stephan van Hienen for the test account)
- Actual date is shown if the previous day in the database isn't
yesterday
- Weekly and last 7 days traffic can be shown.
(Thanks to Derk-Jan Hartman for the suggestion)
- Average kB/s meter
- --testkernel fixed
- Documentation for --dumpdb included in the README
1.1 / 13-Jul-03
- Support for multiple interfaces
- Date checking (update shouldn't be before previous update)
- New database structure
- Possibility to change date output format
- Test tool for faulty kernels
- Parseable output
- Better support for ppp/dsl users
- Free diskspace check
- Possibility to change month rotation day (like 25. instead of 1.)
- Daily/monthly traffic estimation
22-Nov-02
- Renamed the cron script file that would be installed to /etc/cron.d
from vnstat.cron to vnstat because debian systems didn't execute scripts
containing dots (Thanks to frangen / Simo Salminen for this note)
1.0 / 23-Sep-02
- Initial public release