Palash Gupta ef74ef3526
fix: sorting logic is updated (#2882)
* fix: sorting logic is updated

* fix: made a util for error rate

* chore: updated the function name
2023-06-12 18:19:07 +05:30

5 lines
164 B
TypeScript

import { TopOperationList } from './TopOperationsTable';
export const getErrorRate = (list: TopOperationList): number =>
(list.errorCount / list.numCalls) * 100;