net/vnstat: post-merge drama

This commit is contained in:
Franco Fichtner
2018-09-14 15:34:51 +02:00
parent 7f5e823003
commit 0ce92100d9
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -64,6 +64,7 @@ net/relayd -- Relayd Load Balancer
net/shadowsocks -- Secure socks5 proxy
net/siproxd -- Siproxd is a proxy daemon for the SIP protocol
net/upnp -- Universal Plug and Play Service
net/vnstat -- vnStat is a console-based network traffic monitor
net/wireguard -- WireGuard VPN service
net/wol -- Wake on LAN Service
net/zerotier -- Virtual Networks That Just Work
@@ -44,7 +44,7 @@ class ServiceController extends ApiMutableServiceControllerBase
static protected $internalServiceTemplate = 'OPNsense/Vnstat';
static protected $internalServiceEnabled = 'enabled';
static protected $internalServiceName = 'vnstat';
/**
* list hourly statistics
* @return array
@@ -62,7 +62,7 @@ POSSIBILITY OF SUCH DAMAGE.
<script>
// Put API call into a function, needed for auto-refresh
// Put API call into a function, needed for auto-refresh
function update_hourly() {
ajaxCall(url="/api/vnstat/service/hourly", sendData={}, callback=function(data,status) {
$("#listhourly").text(data['response']);
@@ -100,7 +100,7 @@ $( document ).ready(function() {
setInterval(update_daily, 3000);
setInterval(update_weekly, 3000);
setInterval(update_monthly, 3000);
$("#saveAct").click(function(){
saveFormToEndpoint(url="/api/vnstat/general/set", formid='frm_general_settings',callback_ok=function(){
$("#saveAct_progress").addClass("fa fa-spinner fa-pulse");
+1 -1
View File
@@ -6,4 +6,4 @@ chmod 755 /var/run/vnstat
mkdir -p /var/lib/vnstat
chown -R vnstat:vnstat /var/lib/vnstat
chmod 755 /var/lib/vnstat
chmod 755 /var/lib/vnstat