Updated default bandwidth limit text

This commit is contained in:
Thulinma 2017-11-08 10:58:59 +01:00
parent 7107ae018f
commit f0c03bc13c
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ b=parseURL(mist.user.host),b=b.protocol+b.host+b.port;d.append(UI.buildUI([{type
mist.data.config?mist.data.config.license.user:"",LTSonly:!0},{type:"span",label:"Active products",value:f,LTSonly:!0},{type:"span",label:"Configured streams",value:mist.data.streams?Object.keys(mist.data.streams).length:0},{type:"span",label:"Active streams",value:q},{type:"span",label:"Current connections",value:i},{type:"span",label:"Enabled protocols",value:j},{type:"span",label:"Disabled protocols",value:l},{type:"span",label:"Recent problems",value:o},$("<br>"),{type:"str",label:"Human readable name",
pointer:{main:e,index:"serverid"},help:"You can name your MistServer here for personal use. You'll still need to set host name within your network yourself."},{type:"debug",label:"Debug level",pointer:{main:e,index:"debug"},help:"You can set the amount of debug information MistServer saves in the log. A full reboot of MistServer is required before some components of MistServer can post debug information."},{type:"selectinput",label:"Access log",selectinput:[["","Do not track"],["LOG","Log to MistServer log"],
[{type:"str",label:"Path",LTSonly:!0},"Log to file"]],pointer:{main:e,index:"accesslog"},help:"Enable access logs.",LTSonly:!0},{type:"selectinput",label:"Prometheus stats output",selectinput:[["","Disabled"],[{type:"str",label:"Passphrase",LTSonly:!0},"Enabled"]],pointer:{main:e,index:"prometheus"},help:"Make stats available in Prometheus format. These can be accessed via "+b+"/PASSPHRASE or "+b+"/PASSPHRASE.json.",LTSonly:!0},{type:"selectinput",label:"Load balancer bandwidth limit",selectinput:[["",
"Default (1 GiB/s)"],[{label:"Custom",type:"int",min:0,unit:I},"Custom"]],pointer:{main:k,index:"limit"},help:"This setting only applies when MistServer is combined with a load balancer. This is the amount of traffic this server is willing to handle.",LTSonly:!0},{type:"inputlist",label:"Load balancer bandwidth exceptions",pointer:{main:k,index:"exceptions"},help:"This setting only applies when MistServer is combined with a load balancer. Data sent to the hosts and subnets listed here will not count towards reported bandwidth usage.<br>Examples:<ul><li>192.168.0.0/16</li><li>localhost</li><li>10.0.0.0/8</li><li>fe80::/16</li></ul>",
"Default (1 gbps)"],[{label:"Custom",type:"int",min:0,unit:I},"Custom"]],pointer:{main:k,index:"limit"},help:"This setting only applies when MistServer is combined with a load balancer. This is the amount of traffic this server is willing to handle.",LTSonly:!0},{type:"inputlist",label:"Load balancer bandwidth exceptions",pointer:{main:k,index:"exceptions"},help:"This setting only applies when MistServer is combined with a load balancer. Data sent to the hosts and subnets listed here will not count towards reported bandwidth usage.<br>Examples:<ul><li>192.168.0.0/16</li><li>localhost</li><li>10.0.0.0/8</li><li>fe80::/16</li></ul>",
LTSonly:!0},{type:"checkbox",label:"Force configurations save",pointer:{main:e,index:"save"},help:"Tick the box in order to force an immediate save to the config.json MistServer uses to save your settings. Saving will otherwise happen upon closing MistServer. Don't forget to press save after ticking the box."},{type:"buttons",buttons:[{type:"save",label:"Save","function":function(){var a={config:e},c={};c.limit=k.limit?I.val()*k.limit:0;c.exceptions=k.exceptions;if(c.exceptions===null)c.exceptions=
[];a.bandwidth=c;if(e.save)a.save=e.save;delete e.save;mist.send(function(){UI.navto("Overview")},a)}}]}]));if(mist.data.LTS){var ia=function(a){function c(a){if(a.update){var b="";"progress"in a.update&&(b=" ("+a.update.progress+"%)");g.text("Updating.."+b);setTimeout(function(){mist.send(function(a){c(a)},{update:true})},5E3)}else UI.showTab("Overview")}if(!a.update||!("uptodate"in a.update)){g.text("Unknown, checking..");setTimeout(function(){mist.send(function(a){"update"in a&&ia(a)},{checkupdate:true})},
5E3)}else if(a.update.error)g.addClass("red").text(a.update.error);else if(a.update.uptodate)g.text("Your version is up to date.").addClass("green");else if(a.update.progress){g.addClass("orange").removeClass("red").text("Updating..");c(a)}else g.addClass("red").text("Version outdated!").append($("<button>").text("Update").css({"font-size":"1em","margin-left":"1em"}).click(function(){if(confirm("Are you sure you want to execute a rolling update?")){g.addClass("orange").removeClass("red").text("Rolling update command sent..");

View file

@ -2262,7 +2262,7 @@ var UI = {
type: "selectinput",
label: "Load balancer bandwidth limit",
selectinput: [
["","Default (1 GiB/s)"],
["","Default (1 gbps)"],
[{
label: "Custom",
type: "int",