fix: renderNodes try-catch + 正确闭合括号
This commit is contained in:
@@ -362,6 +362,7 @@
|
||||
}
|
||||
}
|
||||
} catch(e) { console.error('renderNodes error:', e); }
|
||||
}
|
||||
|
||||
function bar(v) { return v < 60 ? 'bar-green' : (v < 85 ? 'bar-yellow' : 'bar-red'); }
|
||||
function fmtSizeGB(p) { var u=p.used_gb||0, t=p.total_gb||0; return fmtSize(u*1073741824)+' / '+fmtSize(t*1073741824); }
|
||||
|
||||
Reference in New Issue
Block a user