@ -399,9 +399,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -399,9 +399,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
privatedoubleparseRatio(Stringstring){
// Ratio is given in "1.5" string format
try{
// FIXME Hack for issue #115: Strip the possible . and , separators in a hopefully reliable fashion, for now
@ -412,20 +410,14 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -412,20 +410,14 @@ public class QbittorrentAdapter implements IDaemonAdapter {
if(string.equals("Unknown"))
return-1;
// Sizes are given in "1,023.3 MiB"-like string format
// FIXME Hack for issue #115: Strip the possible . and , separators in a hopefully reliable fashion, for now
@ -453,19 +445,35 @@ public class QbittorrentAdapter implements IDaemonAdapter {
@@ -453,19 +445,35 @@ public class QbittorrentAdapter implements IDaemonAdapter {
// See https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation
if(speed.equals("Unknown"))
return-1;
// Speeds are in "21.9 KiB/s"-like string format
// Returns speed in B/s-based integer
// Sizes are given in "1,023.3 KiB/s"-like string format