vergoh / vnstat

vnStat - a network traffic monitor for Linux and BSD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

";" in new version

Hulxv opened this issue · comments

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

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).

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

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.