diff --git a/src/widgets/technitium/component.jsx b/src/widgets/technitium/component.jsx index 76165763..1d1909c8 100644 --- a/src/widgets/technitium/component.jsx +++ b/src/widgets/technitium/component.jsx @@ -52,8 +52,9 @@ export default function Component({ service }) { } function toPercent(value, total) { + const percentage = (value / total) * 100; return t("common.percent", { - value: !Number.isNaN(value / total) ? value / total : 0, + value: !Number.isNaN(percentage) ? percentage : 0, maximumFractionDigits: 2, }); } @@ -64,55 +65,64 @@ export default function Component({ service }) {