Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion net/vnstat/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PLUGIN_NAME= vnstat
PLUGIN_VERSION= 1.3
PLUGIN_VERSION= 1.4
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Network traffic monitor
PLUGIN_DEPENDS= vnstat
Expand Down
4 changes: 4 additions & 0 deletions net/vnstat/pkg-descr
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ ensures light use of system resources.
Plugin Changelog
================

1.4

* Add Month Rotate option to UI

1.3

* Added Yearly statistics.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@
<type>select_multiple</type>
<help>Set the interface to listen on.</help>
</field>
<field>
<id>general.month_rotate</id>
<label>Month Rotate</label>
<type>text</type>
<help>On which day should months change.</help>
</field>
</form>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/vnstat/general</mount>
<description>Vnstat configuration</description>
<version>0.0.1</version>
<version>0.0.2</version>
<items>
<enabled type="BooleanField">
<Default>0</Default>
Expand All @@ -11,5 +11,12 @@
<Required>N</Required>
<Multiple>Y</Multiple>
</interface>
<month_rotate type="NumericField">
<Required>Y</Required>
<Default>1</Default>
Comment thread
gpfountz marked this conversation as resolved.
<MinimumValue>1</MinimumValue>
<MaximumValue>28</MaximumValue>
<ValidationMessage>Value must be between 1 and 28</ValidationMessage>
</month_rotate>
</items>
</model>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ DatabaseDir "/var/lib/vnstat"
Locale "-"

# on which day should months change
MonthRotate 1
MonthRotate {{ OPNsense.vnstat.general.month_rotate }}

# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
Expand Down