Fixed display error of server capacity by performing rounding as last step.

This commit is contained in:
matlorr
2025-01-10 10:13:36 +01:00
parent 52898d93e7
commit 451dc262b2
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -193,8 +193,8 @@ function LandingPage() {
</p>
</Trans>
<p>
{ usageMem >= 0 && <> {t("RAM")}: <strong>{usageMem} %</strong>{t(" used")}.<br/></> }
{ usageCPU >= 0 && <> {t("CPU")}: <strong>{usageCPU} %</strong>{t(" used")}. </> }
{ usageMem >= 0 && <> {t("RAM")}: <strong>{usageMem.toFixed(2)} %</strong>{t(" used")}.<br/></> }
{ usageCPU >= 0 && <> {t("CPU")}: <strong>{usageCPU.toFixed(2)} %</strong>{t(" used")}. </> }
</p>
</div>
</section>