1.30
This commit is contained in:
parent
828461d46b
commit
6762a94abc
@ -38,6 +38,7 @@ import type { K8sDeploymentResponse, K8sPodResponse } from '../types';
|
||||
import { getDeploymentHealth, HealthStatusLabels } from '../types';
|
||||
import { getK8sPodsByDeployment } from '../service';
|
||||
import { useAutoRefresh } from '../hooks/useAutoRefresh';
|
||||
import { formatCpuPair } from '../utils/resourceFormatter';
|
||||
import dayjs from 'dayjs';
|
||||
import relativeTime from 'dayjs/plugin/relativeTime';
|
||||
import 'dayjs/locale/zh-cn';
|
||||
@ -261,7 +262,7 @@ export const DeploymentRow: React.FC<DeploymentRowProps> = ({
|
||||
<td className="px-6 py-4">
|
||||
<div className="text-xs text-gray-600 space-y-1 whitespace-nowrap">
|
||||
<div>
|
||||
<span className="font-medium">CPU:</span> {deployment.totalCpuRequest || '-'} / {deployment.totalCpuLimit || '-'}
|
||||
<span className="font-medium">CPU:</span> {formatCpuPair(deployment.totalCpuRequest, deployment.totalCpuLimit)}
|
||||
</div>
|
||||
<div>
|
||||
<span className="font-medium">内存:</span> {deployment.totalMemoryRequest || '-'} / {deployment.totalMemoryLimit || '-'}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user