Skip to content

Commit fe82d4b

Browse files
committed
fix: millicore precision
1 parent b04cb9e commit fe82d4b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pages/audit-report/components/GaugeCell.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ const GaugeCell: React.FC<GaugeCellProps> = ({ value, gauge }) => {
2828
return formatBytes(value);
2929
case "millicores":
3030
case "millicore":
31-
// Use the same logic as formatMillicore function in DynamicDataTable
32-
if (value >= 1000) {
33-
return `${(value / 1000).toFixed(2)} cores`;
34-
}
35-
return `${value}m`;
31+
return `${value.toFixed(0)} m`;
3632
default:
3733
return `${value} ${unit}`;
3834
}

0 commit comments

Comments
 (0)