chore(station-b): remove dead renderBinBar function
Made-with: Cursor
This commit is contained in:
parent
4110de7239
commit
75e34733a8
|
|
@ -506,15 +506,6 @@ function buildServiceCards(){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderBinBar(id,pct,warnTh,critTh){
|
|
||||||
const el=document.getElementById(id); if(!el)return;
|
|
||||||
const cells=20,filled=Math.round(pct/100*cells);
|
|
||||||
const cls=pct>critTh?'crit':pct>warnTh?'warn':'';
|
|
||||||
el.className='bin-bar'+(cls?' '+cls:'');
|
|
||||||
el.innerHTML=Array.from({length:cells},(_,i)=>
|
|
||||||
`<span class="${i<filled?'b1':'b0'}">${i<filled?'1':'0'}</span>`
|
|
||||||
).join('');
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateSparkline(id, ms, ok){
|
function updateSparkline(id, ms, ok){
|
||||||
const h = svcLatHist[id];
|
const h = svcLatHist[id];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue