Skip to content

Commit

Permalink
Update FileSizeHelper.cs
Browse files Browse the repository at this point in the history
Try to make file size parsing work on systems with other locales
  • Loading branch information
KoalaBear84 committed May 19, 2020
1 parent 416f63c commit f3d5ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenDirectoryDownloader/Helpers/FileSizeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static long ParseFileSize(string value, int kbValue = 1024, bool throwExc
}

// Get the numeric part.
double number = double.Parse(value.Substring(0, ext_start));
double number = double.Parse(value.Substring(0, ext_start), CultureInfo.InvariantCulture);

// Get the extension.
string suffix;
Expand Down

0 comments on commit f3d5ca7

Please sign in to comment.