mirror of
https://github.com/unraid/webgui.git
synced 2026-04-25 20:01:38 -05:00
WG updates using Nchan
This commit is contained in:
@@ -978,8 +978,8 @@ $.each(json["cpuload"],function(k,v) {
|
||||
});
|
||||
|
||||
<?if ($wireguard):?>
|
||||
var statistics = new NchanSubscriber('/sub/wireguard');
|
||||
statistics.on('message', function(data) {
|
||||
var wireguard = new NchanSubscriber('/sub/wireguard');
|
||||
wireguard.on('message', function(data) {
|
||||
var n = {};
|
||||
var rows = data.split('\0');
|
||||
for (var i=0,row; row=rows[i]; i++) {
|
||||
@@ -1051,6 +1051,10 @@ $(function() {
|
||||
dropdown('enter_share');
|
||||
<?endif;?>
|
||||
dropdown('enter_view');
|
||||
cpuload.start();
|
||||
<?if ($wireguard):?>
|
||||
wireguard.start();
|
||||
<?endif;?>
|
||||
update5();
|
||||
update15();
|
||||
update60();
|
||||
@@ -1087,10 +1091,6 @@ $(function() {
|
||||
toggleView('shares_view',true);
|
||||
portMenu();
|
||||
loadlist(true);
|
||||
cpuload.start();
|
||||
<?if ($wireguard):?>
|
||||
statistics.start();
|
||||
<?endif;?>
|
||||
sortTable($('#db-box1'),$.cookie('db-box1'));
|
||||
sortTable($('#db-box2'),$.cookie('db-box2'));
|
||||
sortTable($('#db-box3'),$.cookie('db-box3'));
|
||||
|
||||
Reference in New Issue
Block a user