vergoh / vnstat

vnStat - a network traffic monitor for Linux and BSD
GNU General Public License v2.0
1.41k stars 120 forks source link

";" in new version #220

Closed hulxv closed 2 years ago

hulxv commented 2 years ago

In new version (2.9), Using semicolon in configuration file to comment in addition to hashtag or to select configuration props ?

vergoh commented 2 years ago

Both ; and # act as comment characters. If either is the first character on the configuratin file line then that line gets ignored (= it's not active, changing the value does nothing). Remove the ; for the beginning of the line to activate the option (as it says in the beginning of the file - https://github.com/vergoh/vnstat/blob/master/cfg/vnstat.conf#L4).

hulxv commented 2 years ago

Ok, I got it. Thanks a lot, I will try to support that in Client.

vergoh commented 2 years ago

If you want to keep things simple then you can just remove every ; from the configuration file before initial startup of the daemon. That's pretty much how one of the test cases is currently testing the configuration file.