Correct avg. acc
This commit is contained in:
parent
222aab9d12
commit
403e6cbea8
@ -131,33 +131,33 @@ const ReportTable: React.FC = () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Avg Accuracy',
|
title: 'Avg. Accuracy',
|
||||||
dataIndex: 'Avg Accuracy',
|
dataIndex: 'Avg. Accuracy',
|
||||||
key: 'Avg Accuracy',
|
key: 'Avg. Accuracy',
|
||||||
render: (_, record) => {
|
render: (_, record) => {
|
||||||
const isAbnormal = record['Avg Accuracy'] * 100 < 98;
|
const isAbnormal = record['Avg. Accuracy'] * 100 < 98;
|
||||||
return (
|
return (
|
||||||
<span style={{ color: isAbnormal ? 'red' : '' }}>
|
<span style={{ color: isAbnormal ? 'red' : '' }}>
|
||||||
{record['Avg Accuracy'] &&
|
{record['Avg. Accuracy'] &&
|
||||||
(Number(record['Avg Accuracy']) * 100)?.toFixed(2)}
|
(Number(record['Avg. Accuracy']) * 100)?.toFixed(2)}
|
||||||
</span>
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: 'Avg Client Request Time',
|
|
||||||
dataIndex: 'Avg. Client Request Time',
|
|
||||||
key: 'Avg. Client Request Time',
|
|
||||||
render: (_, record) => {
|
|
||||||
const isAbnormal = record['Avg Client Request Time'] > 2;
|
|
||||||
return (
|
|
||||||
<span style={{ color: isAbnormal ? 'red' : '' }}>
|
|
||||||
{record['Avg Client Request Time'] &&
|
|
||||||
Number(record['Avg Client Request Time'])?.toFixed(2)}
|
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: 'Avg Client Request Time',
|
||||||
|
// dataIndex: 'Avg. Client Request Time',
|
||||||
|
// key: 'Avg. Client Request Time',
|
||||||
|
// render: (_, record) => {
|
||||||
|
// const isAbnormal = record['Avg Client Request Time'] > 2;
|
||||||
|
// return (
|
||||||
|
// <span style={{ color: isAbnormal ? 'red' : '' }}>
|
||||||
|
// {record['Avg Client Request Time'] &&
|
||||||
|
// Number(record['Avg Client Request Time'])?.toFixed(2)}
|
||||||
|
// </span>
|
||||||
|
// );
|
||||||
|
// },
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: 'Avg. OCR Processing Time',
|
title: 'Avg. OCR Processing Time',
|
||||||
dataIndex: 'Avg. OCR Processing Time',
|
dataIndex: 'Avg. OCR Processing Time',
|
||||||
|
Loading…
Reference in New Issue
Block a user