@@ -583,7 +583,7 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
583583 var doesClusterHaveGPUs bool
584584 for _ , nodeInfo := range infoResponse .NodeInfos {
585585 totalReplicas += nodeInfo .NumReplicas
586- if nodeInfo .ComputeCapacity .GPU > 0 {
586+ if nodeInfo .ComputeUserCapacity .GPU > 0 {
587587 doesClusterHaveGPUs = true
588588 }
589589 }
@@ -603,9 +603,9 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
603603 {Title : "instance type" },
604604 {Title : "lifecycle" },
605605 {Title : "replicas" },
606- {Title : "CPU (free / total)" },
607- {Title : "memory (free / total)" },
608- {Title : "GPU (free / total)" , Hidden : ! doesClusterHaveGPUs },
606+ {Title : "CPU (requested / total allocatable )" },
607+ {Title : "memory (requested / total allocatable )" },
608+ {Title : "GPU (requested / total allocatable )" , Hidden : ! doesClusterHaveGPUs },
609609 }
610610
611611 var rows [][]interface {}
@@ -614,9 +614,10 @@ func printInfoNodes(infoResponse *schema.InfoResponse) {
614614 if nodeInfo .IsSpot {
615615 lifecycle = "spot"
616616 }
617- cpuStr := nodeInfo .ComputeAvailable .CPU .String () + " / " + nodeInfo .ComputeCapacity .CPU .String ()
618- memStr := nodeInfo .ComputeAvailable .Mem .String () + " / " + nodeInfo .ComputeCapacity .Mem .String ()
619- gpuStr := s .Int64 (nodeInfo .ComputeAvailable .GPU ) + " / " + s .Int64 (nodeInfo .ComputeCapacity .GPU )
617+
618+ cpuStr := nodeInfo .ComputeUserRequested .CPU .MilliString () + " / " + nodeInfo .ComputeUserCapacity .CPU .MilliString ()
619+ memStr := nodeInfo .ComputeUserRequested .Mem .String () + " / " + nodeInfo .ComputeUserCapacity .Mem .String ()
620+ gpuStr := s .Int64 (nodeInfo .ComputeUserRequested .GPU ) + " / " + s .Int64 (nodeInfo .ComputeUserCapacity .GPU )
620621 rows = append (rows , []interface {}{nodeInfo .InstanceType , lifecycle , nodeInfo .NumReplicas , cpuStr , memStr , gpuStr })
621622 }
622623
0 commit comments