mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 05:02:28 -06:00
add rtt back
This commit is contained in:
parent
09a9ead9da
commit
493ed5d3aa
|
|
@ -136,7 +136,9 @@
|
||||||
|
|
||||||
|
|
||||||
<div id="tree_footer">
|
<div id="tree_footer">
|
||||||
<div id="spaceFree" style="display: block;">{{ space_free }} free of {{ space_total }}</div>
|
<div id="rtt_latency"></div>
|
||||||
|
|
||||||
|
<div id="spaceFree">{{ space_free }} free of {{ space_total }}</div>
|
||||||
|
|
||||||
<div id="space_bar" style="display: block; cursor: default;">
|
<div id="space_bar" style="display: block; cursor: default;">
|
||||||
<div id="spaceTotal_bar"></div>
|
<div id="spaceTotal_bar"></div>
|
||||||
|
|
|
||||||
|
|
@ -7449,9 +7449,10 @@ var treectl = (function () {
|
||||||
srvinf = res.srvinf;
|
srvinf = res.srvinf;
|
||||||
ebi('spaceFree').innerHTML = res.space_free + ' free of ' + res.space_total ;
|
ebi('spaceFree').innerHTML = res.space_free + ' free of ' + res.space_total ;
|
||||||
ebi('spaceUsed_bar').width = res.space_used_percent + '%';
|
ebi('spaceUsed_bar').width = res.space_used_percent + '%';
|
||||||
if (rtt !== null)
|
if (rtt !== null){
|
||||||
srvinf += (srvinf ? '</span> // <span>rtt: ' : 'rtt: ') + rtt;
|
srvinf += (srvinf ? '</span> // <span>rtt: ' : 'rtt: ') + rtt;
|
||||||
|
ebi('rtt_latency').innerHTML = 'latency: ' + rtt
|
||||||
|
}
|
||||||
var o = ebi('srv_info2');
|
var o = ebi('srv_info2');
|
||||||
if (o)
|
if (o)
|
||||||
o.innerHTML = ebi('srv_info').innerHTML = '<span>' + srvinf + '</span>';
|
o.innerHTML = ebi('srv_info').innerHTML = '<span>' + srvinf + '</span>';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue