Files
pyTorrent/pytorrent/static/js/statusBar.js
T
Mateusz Gruszczyński b6a5003f2c split js
2026-05-31 13:04:05 +02:00

3 lines
769 B
JavaScript

// Note: This chunk keeps one Tools/status feature separate from the former smartQueue.js bundle.
export const statusBarSource = "function updateFooterClock(){\n const el=$('statClock');\n if(el) el.textContent=new Date().toLocaleTimeString([], {hour:'2-digit', minute:'2-digit', second:'2-digit'});\n }\n function updateSocketStatus(s={}){\n const el=$('statSockets');\n if(!el) return;\n const open=s.open_sockets;\n const max=s.max_open_sockets;\n el.textContent=open == null ? '-' : (max == null ? String(open) : `${open}/${max}`);\n const box=$('statusSockets');\n if(box) box.title=open == null ? 'Open sockets unavailable from this rTorrent build' : `Open rTorrent sockets${max == null ? '' : ' / max'}: ${el.textContent}`;\n }\n";