@ -643,38 +643,55 @@ public class BitCometAdapter implements IDaemonAdapter {
@@ -643,38 +643,55 @@ public class BitCometAdapter implements IDaemonAdapter {
// Probably encountered a torrent property, i.e. '<type>BT</type>'
@ -776,13 +776,14 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -776,13 +776,14 @@ public class QBittorrentAdapter implements IDaemonAdapter {
return(long)number;
}
// Returns size in B-based long
if(parts[1].equals("TiB")){
switch(parts[1]){
case"TiB":
return(long)(number*1024L*1024L*1024L*1024L);
}elseif(parts[1].equals("GiB")){
case"GiB":
return(long)(number*1024L*1024L*1024L);
}elseif(parts[1].equals("MiB")){
case"MiB":
return(long)(number*1024L*1024L);
}elseif(parts[1].equals("KiB")){
case"KiB":
return(long)(number*1024L);
}
return(long)number;
@ -811,11 +812,12 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -811,11 +812,12 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -833,27 +835,29 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -833,27 +835,29 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -383,25 +383,21 @@ public class TTorrentAdapter implements IDaemonAdapter {
@@ -383,25 +383,21 @@ public class TTorrentAdapter implements IDaemonAdapter {