Browse Source

Merge branch 'dev' of https://github.com/sudisk/transdroid into sudisk-dev

pull/177/head
Eric Kok 10 years ago
parent
commit
c3dc19f7de
  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