mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Revert "Fix WebUI sort by size/speed for some locales (with comma as decimal point)."
This reverts commit 6cf780f57c.
This commit is contained in:
@@ -79,9 +79,8 @@ var dynamicTable = new Class ({
|
|||||||
case 8: // Down Speed
|
case 8: // Down Speed
|
||||||
var sizeStrToFloat = function(mystr) {
|
var sizeStrToFloat = function(mystr) {
|
||||||
var val1 = mystr.split(' ');
|
var val1 = mystr.split(' ');
|
||||||
val1[0] = val1[0].replace(",", "."); // toFloat() cannot parse comma as decimal point
|
var val1num = val1[0].toFloat()
|
||||||
var val1num = val1[0].toFloat();
|
var unit = val1[1];
|
||||||
var unit = val1[1].split('/')[0]; // get an unit numerator only (to support speed values)
|
|
||||||
switch(unit) {
|
switch(unit) {
|
||||||
case '_(TiB)':
|
case '_(TiB)':
|
||||||
return val1num*1099511627776;
|
return val1num*1099511627776;
|
||||||
|
|||||||
Reference in New Issue
Block a user