diff --git a/ui/src/progress_table_cell_type.tsx b/ui/src/progress_table_cell_type.tsx index 0052337642..c85cc893a1 100644 --- a/ui/src/progress_table_cell_type.tsx +++ b/ui/src/progress_table_cell_type.tsx @@ -13,7 +13,7 @@ // limitations under the License. import * as Fluent from '@fluentui/react' -import { F, S } from './core' +import { F, S, B } from './core' import React from 'react' import { stylesheet } from 'typestyle' import { ProgressArc } from './parts/progress_arc' @@ -46,11 +46,17 @@ export interface ProgressTableCellType { name?: S } -export const XProgressTableCellType = ({ model: m, progress }: { model: ProgressTableCellType, progress: F }) => ( +export const XProgressTableCellType = ({ model: m, progress, decimals }: { model: ProgressTableCellType, progress: F, decimals?: B }) => (
-
{`${Math.round(progress * 100)}%`}
+
+ {decimals ? ( + `${Math.round(progress *10000)/ 100}%` + ) : ( + `${Math.round(progress * 100)}%` + )} +
) \ No newline at end of file