add rtt back

This commit is contained in:
Til Schmitter 2026-04-04 13:14:11 +02:00
parent 09a9ead9da
commit 493ed5d3aa
2 changed files with 6 additions and 3 deletions

View file

@ -136,7 +136,9 @@
<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="spaceTotal_bar"></div>

View file

@ -7449,9 +7449,10 @@ var treectl = (function () {
srvinf = res.srvinf;
ebi('spaceFree').innerHTML = res.space_free + ' free of ' + res.space_total ;
ebi('spaceUsed_bar').width = res.space_used_percent + '%';
if (rtt !== null)
if (rtt !== null){
srvinf += (srvinf ? '</span> // <span>rtt: ' : 'rtt: ') + rtt;
ebi('rtt_latency').innerHTML = 'latency: ' + rtt
}
var o = ebi('srv_info2');
if (o)
o.innerHTML = ebi('srv_info').innerHTML = '<span>' + srvinf + '</span>';