Another attempt at fixing rounding issue with optimal retention

Also use the previously-added translation.
This commit is contained in:
Damien Elmes 2024-04-05 18:22:45 +07:00
parent 690866b090
commit 3033b54890

View file

@ -360,9 +360,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{#if optimalRetention}
{estimatedRetention(optimalRetention)}
{#if parseFloat(optimalRetention.toFixed(2)) > $config.desiredRetention}
{#if optimalRetention - $config.desiredRetention >= 0.01}
<Warning
warning="Your desired retention is below optimal. Increasing it is recommended."
warning={tr.deckConfigDesiredRetentionBelowOptimal()}
className="alert-warning"
/>
{/if}