Fix spelling mistakes identified by Lintian

Co-authored-by: Thulinma <jaron@vietors.com>
This commit is contained in:
Alex Henrie 2024-02-08 11:08:36 -07:00 committed by Thulinma
parent a1fbb9e186
commit ea47e19129
14 changed files with 24 additions and 24 deletions

View file

@ -205,7 +205,7 @@ case 12:a=a+("< (numerical) "+c);break;case 13:a=a+("<= (numerical) "+c);break;c
f.length>=8&&f[5]&&h.append($("<span>").text(", starts if "+k(f[5],f[6],f[7])));f.length>=11&&f[8]&&h.append($("<span>").text(", stops if "+k(f[8],f[9],f[10])))}else f.length>=4&&f[2]!=f[3]?h.append($("<span>").text(f[2])).append($("<span>").html("&#187").addClass("unit").css("margin","0 0.5em")).append($("<span>").text(f[3])):h.append($("<span>").text(f[2]));k=$("<td>").append($("<button>").text(g=="Automatic"?"Remove":"Stop").click(function(){if(confirm("Are you sure you want to "+$(this).text().toLowerCase()+
" this push?\n"+f[1]+" to "+f[2])){var a=$(this).closest("tr");a.html($("<td colspan=99>").html($("<span>").addClass("red").text(g=="Automatic"?"Removing..":"Stopping..")));if(g=="Automatic"){var c=f.slice(1);mist.send(function(){a.remove()},{push_auto_remove:[c]})}else mist.send(function(){b([f[0]])},{push_stop:[f[0]]})}}));if(g=="Automatic"){k.prepend($("<button>").text("Edit").click(function(){UI.navto("Start Push","auto_"+($(this).closest("tr").index()-1))}));k.append($("<button>").text("Stop pushes").click(function(){if(confirm('Are you sure you want to stop all pushes matching \n"'+
f[1]+" to "+f[2]+'"?'+(d.wait!=0?"\n\nRetrying is enabled. You'll probably want to set that to 0.":""))){var c=$(this);c.text("Stopping pushes..");var g=[],h;for(h in a.push_list)if(f[1]==a.push_list[h][1]&&f[2]==a.push_list[h][2]){g.push(a.push_list[h][0]);e.find("tr[data-pushid="+a.push_list[h][0]+"]").html($("<td colspan=99>").html($("<span>").addClass("red").text("Stopping..")))}mist.send(function(){c.text("Stop pushes");b(g)},{push_stop:g,push_settings:{wait:0}})}}))}else{if(f.length>=6){var l=
f[5];i.append($("<div>").append("Active for: "+UI.format.duration(l.active_seconds))).append($("<div>").append("Data transfered: "+UI.format.bytes(l.bytes))).append($("<div>").append("Media time transfered: "+UI.format.duration(l.mediatime*0.001)));"pkt_retrans_count"in l&&i.append($("<div>").append("Packets retransmitted: "+UI.format.number(l.pkt_retrans_count||0)));"pkt_loss_count"in l&&i.append($("<div>").append("Packets lost: "+UI.format.number(l.pkt_loss_count||0)+" ("+UI.format.addUnit(UI.format.number(l.pkt_loss_perc||
f[5];i.append($("<div>").append("Active for: "+UI.format.duration(l.active_seconds))).append($("<div>").append("Data transferred: "+UI.format.bytes(l.bytes))).append($("<div>").append("Media time transferred: "+UI.format.duration(l.mediatime*0.001)));"pkt_retrans_count"in l&&i.append($("<div>").append("Packets retransmitted: "+UI.format.number(l.pkt_retrans_count||0)));"pkt_loss_count"in l&&i.append($("<div>").append("Packets lost: "+UI.format.number(l.pkt_loss_count||0)+" ("+UI.format.addUnit(UI.format.number(l.pkt_loss_perc||
0),"%")+" over the last "+UI.format.addUnit(5,"s")+")"))}if(f.length>=5)for(var j in f[4]){l=f[4][j];i.append($("<div>").append(UI.format.time(l[0])+" ["+l[1]+"] "+l[2]))}}return $("<tr>").css("vertical-align","top").attr("data-pushid",f[0]).append($("<td>").text(f[1])).append($("<td>").append(h.children())).append($("<td>").addClass("logs").append(i.children())).append(k)}L.html(UI.buildUI([{type:"help",help:"You can push streams to files or other servers, allowing them to broadcast your stream as well."}]));
var d=a.push_settings;d||(d={});var e=$("<table>").append($("<tr>").append($("<th>").text("Stream")).append($("<th>").text("Target")).append($("<th>")).append($("<th>"))),f=e.clone();if("push_list"in a)for(var g in a.push_list)e.append(c(a.push_list[g],"Manual"));if("push_auto_list"in a)for(g in a.push_auto_list){var h=a.push_auto_list[g].slice();h.unshift(-1);f.append(c(h,"Automatic"))}L.append($("<h3>").text("Automatic push settings")).append(UI.buildUI([{label:"Delay before retry",unit:"s",type:"int",
min:0,help:"How long the delay should be before MistServer retries an automatic push.<br>If set to 0, it does not retry.","default":3,pointer:{main:d,index:"wait"}},{label:"Maximum retries",unit:"/s",type:"int",min:0,help:"The maximum amount of retries per second (for all automatic pushes).<br>If set to 0, there is no limit.","default":0,pointer:{main:d,index:"maxspeed"}},{type:"buttons",buttons:[{type:"save",label:"Save","function":function(){mist.send(function(){UI.navto("Push")},{push_settings:d})}}]}])).append($("<h3>").text("Automatic push settings")).append($("<button>").text("Add an automatic push").click(function(){UI.navto("Start Push",

View file

@ -5974,11 +5974,11 @@ var UI = {
)
).append(
$("<div>").append(
"Data transfered: "+UI.format.bytes(stats.bytes)
"Data transferred: "+UI.format.bytes(stats.bytes)
)
).append(
$("<div>").append(
"Media time transfered: "+UI.format.duration(stats.mediatime*1e-3)
"Media time transferred: "+UI.format.duration(stats.mediatime*1e-3)
)
);
if ("pkt_retrans_count" in stats) {
@ -6729,7 +6729,7 @@ var UI = {
saveas.target += append;
}
}
delete saveas.params; //these are now part of the target url and we don't need them seperately
delete saveas.params; //these are now part of the target url and we don't need them separately
delete saveas.custom_url_params;
var obj = {};