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