Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
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
Expand Up @@ -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 @@ -8,6 +8,7 @@ vnstat_enable="YES"
{% do interfaces.append(physical_interface(interface)) %}
{% endfor %}
vnstat_additional_ifaces="{{ interfaces|join(' ') }}"
vnstat_month_rotate="{{ OPNsense.vnstat.general.month_rotate }}"
Comment thread
gpfountz marked this conversation as resolved.
Outdated
{% endif %}
{% else %}
vnstat_enable="NO"
Expand Down
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