mirror of
https://github.com/wassname/ray.git
synced 2026-10-29 13:30:42 +08:00
[Dashboard] Fix GPU resource rendering issue (#13388)
This commit is contained in:
1 parent
e63da54931
commit
321bbe1ffb
1 file changed
+2
-2
@@ -133,7 +133,7 @@ const WorkerGPUEntry: React.FC<WorkerGPUEntryProps> = ({ resourceSlot }) => {
|
||||
};
|
||||
|
||||
const WorkerGPU: WorkerFeatureRenderFn = ({ worker }) => {
|
||||
const workerRes = worker.coreWorkerStats[0].usedResources;
|
||||
const workerRes = worker.coreWorkerStats[0]?.usedResources;
|
||||
const workerUsedGPUResources = workerRes?.["GPU"];
|
||||
let message;
|
||||
if (workerUsedGPUResources === undefined) {
|
||||
@@ -161,7 +161,7 @@ const WorkerGPU: WorkerFeatureRenderFn = ({ worker }) => {
|
||||
};
|
||||
|
||||
const workerGPUUtilization = (worker: Worker | null) => {
|
||||
const workerRes = worker?.coreWorkerStats[0].usedResources;
|
||||
const workerRes = worker?.coreWorkerStats[0]?.usedResources;
|
||||
const workerUsedGPUResources = workerRes?.["GPU"];
|
||||
return (
|
||||
workerUsedGPUResources &&
|
||||
|
||||
Reference in new issue
Block a user