Browse Source

Merge branch 'sudisk-dev' into dev

pull/177/head
Eric Kok 10 years ago
parent
commit
0a52717819
  1. 2
      app/src/main/java/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java

2
app/src/main/java/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java

@ -461,7 +461,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
} else if (parts[1].equals("KiB/s")) { } else if (parts[1].equals("KiB/s")) {
return (int) (number * 1024); return (int) (number * 1024);
} }
return (int) (Double.parseDouble(parts[0])); return (int) (Double.parseDouble(normalizeNumber(parts[0])));
} }
private String normalizeNumber(String in) { private String normalizeNumber(String in) {

Loading…
Cancel
Save