fix: renderNodes try-catch + 正确闭合括号

This commit is contained in:
qinglong
2026-06-14 12:01:27 +08:00
parent 64d148b771
commit 0a3269a0d7
+1
View File
@@ -362,6 +362,7 @@
} }
} }
} catch(e) { console.error('renderNodes error:', e); } } catch(e) { console.error('renderNodes error:', e); }
}
function bar(v) { return v < 60 ? 'bar-green' : (v < 85 ? 'bar-yellow' : 'bar-red'); } 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); } function fmtSizeGB(p) { var u=p.used_gb||0, t=p.total_gb||0; return fmtSize(u*1073741824)+' / '+fmtSize(t*1073741824); }