fix: delete worker

This commit is contained in:
jialin
2024-07-10 17:14:55 +08:00
parent 0ed7568859
commit 8607815240
14 changed files with 129 additions and 16 deletions
@@ -116,6 +116,9 @@ const UtilizationOvertime: React.FC = () => {
const typeList = ['gpu', 'cpu', 'memory', 'gpu_memory'];
const tooltipValueFormatter = (value: any) => {
return !value ? value : `${value}%`;
};
const generateData = () => {
const legendData: string[] = [];
const xAxisData: string[] = [];
@@ -154,8 +157,10 @@ const UtilizationOvertime: React.FC = () => {
seriesData={seriesData}
legendData={legendData}
xAxisData={xAxisData}
tooltipValueFormatter={tooltipValueFormatter}
smooth={true}
width="100%"
yAxisName="(%)"
></LineChart>
</>
);