diff options
author | Perry Mason <crazypark2@yahoo.dk> | 2010-12-09 14:32:20 +0100 |
---|---|---|
committer | Perry Mason <crazypark2@yahoo.dk> | 2010-12-09 14:32:20 +0100 |
commit | 039d1805264ab91686416b5cb552390f3f3be819 (patch) | |
tree | ae8c78e2606e0401551233a101a4e51190f30c46 /config/vnstat2/vnstat2.inc | |
parent | 04313c9dfb64b50e2e4fbca8ac24e7ef72d9b33f (diff) | |
download | pfsense-packages-039d1805264ab91686416b5cb552390f3f3be819.tar.gz pfsense-packages-039d1805264ab91686416b5cb552390f3f3be819.tar.bz2 pfsense-packages-039d1805264ab91686416b5cb552390f3f3be819.zip |
[vnstat2] Correct iface title and no need for vnstat.conf
Diffstat (limited to 'config/vnstat2/vnstat2.inc')
-rw-r--r-- | config/vnstat2/vnstat2.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index ff8307c9..dc3b67f5 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -38,8 +38,8 @@ function change_vnstat_conf(){ } function write_conf_f(){ -global $config; -$monthrotate = $config['installedpackages']['vnstat2']['config'][0]['monthrotate']; + global $config; + $monthrotate = $config['installedpackages']['vnstat2']['config'][0]['monthrotate']; // ************ Write new vnstat.conf ***************** @@ -127,6 +127,7 @@ shared_vnstat(); } function shared_vnstat() { + global $config; // get system nic's and create a database for them $array_of_real_nic_names = array(); $array_of_custom_nic_names = array(); |