Fix spurious warning when comparing optimal and desired retention

This commit is contained in:
Damien Elmes 2024-03-22 17:16:21 +07:00
parent f79a6c9480
commit 0c02c669c1

View file

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