diff --git a/dashboard/client/src/pages/dashboard/node-info/features/ObjectStoreMemory.tsx b/dashboard/client/src/pages/dashboard/node-info/features/ObjectStoreMemory.tsx index 0201040ff..95f4421b1 100644 --- a/dashboard/client/src/pages/dashboard/node-info/features/ObjectStoreMemory.tsx +++ b/dashboard/client/src/pages/dashboard/node-info/features/ObjectStoreMemory.tsx @@ -18,20 +18,22 @@ export const ClusterObjectStoreMemory: ClusterFeatureRenderFn = ({ nodes }) => { nodes.map((n) => n.raylet.objectStoreAvailableMemory), ); const totalUsed = sum(nodes.map((n) => n.raylet.objectStoreUsedMemory)); + const total = totalUsed + totalAvailable; return (
); }; export const NodeObjectStoreMemory: NodeFeatureRenderFn = ({ node }) => { - const total = node.raylet.objectStoreAvailableMemory; + const totalAvailable = node.raylet.objectStoreAvailableMemory; const used = node.raylet.objectStoreUsedMemory; - if (used === undefined || total === undefined || total === 0) { + const total = totalAvailable + used; + if (used === undefined || totalAvailable === undefined || total === 0) { return ( N/A