From ed2756b88550885cc1d35df1565d273f4ce6c528 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 19 Aug 2020 15:27:23 +0800 Subject: [PATCH] Convert to the proper type --- src/webui/www/private/views/preferences.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 8b2e7c0f9..4052f5816 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -2101,7 +2101,7 @@ // Share Ratio Limiting let max_ratio = -1; if ($('max_ratio_checkbox').getProperty('checked')) { - max_ratio = $('max_ratio_value').getProperty('value'); + max_ratio = $('max_ratio_value').getProperty('value').toFloat(); if (isNaN(max_ratio) || (max_ratio < 0) || (max_ratio > 9998)) { alert("QBT_TR(Share ratio limit must be between 0 and 9998.)QBT_TR[CONTEXT=HttpServer]"); return;