Skip to content

Commit

Permalink
Number parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkHunter committed Jun 6, 2013
1 parent fed1207 commit 1aaf150
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/pms/util/StringUtil.java
Expand Up @@ -105,7 +105,8 @@ public static double convertStringToTime(String time) throws IllegalArgumentExce
String[] arrs = time.split(":");
double value, sum = 0;
for (int i = 0; i < arrs.length; i++) {
value = Double.parseDouble(arrs[arrs.length - i - 1]);
String tmp = arrs[arrs.length - i - 1];
value = Double.parseDouble(tmp.replace(",", "."));
sum += value * MULTIPLIER[i];
}
return sum;
Expand Down

0 comments on commit 1aaf150

Please sign in to comment.