mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/vnstat: post-merge drama
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Regular → Executable
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user