mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:53:20 +08:00
Make dashboard disk stat not break on non-Unix machines (note it will not correctly report stat still) (#9962)
Co-authored-by: Max Fitton <max@semprehealth.com>
This commit is contained in:
@@ -15,8 +15,10 @@ export const ClusterDisk: ClusterFeatureRenderFn = ({ nodes }) => {
|
||||
let used = 0;
|
||||
let total = 0;
|
||||
for (const node of nodes) {
|
||||
used += node.disk["/"].used;
|
||||
total += node.disk["/"].total;
|
||||
if ("/" in node.disk) {
|
||||
used += node.disk["/"].used;
|
||||
total += node.disk["/"].total;
|
||||
}
|
||||
}
|
||||
return (
|
||||
<UsageBar
|
||||
|
||||
Reference in New Issue
Block a user