@ -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,14 +776,15 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -776,14 +776,15 @@ public class QBittorrentAdapter implements IDaemonAdapter {
return(long)number;
}
// Returns size in B-based long
if(parts[1].equals("TiB")){
return(long)(number*1024L*1024L*1024L*1024L);
}elseif(parts[1].equals("GiB")){
return(long)(number*1024L*1024L*1024L);
}elseif(parts[1].equals("MiB")){
return(long)(number*1024L*1024L);
}elseif(parts[1].equals("KiB")){
return(long)(number*1024L);
switch(parts[1]){
case"TiB":
return(long)(number*1024L*1024L*1024L*1024L);
case"GiB":
return(long)(number*1024L*1024L*1024L);
case"MiB":
return(long)(number*1024L*1024L);
case"KiB":
return(long)(number*1024L);
}
return(long)number;
}
@ -811,12 +812,13 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -811,12 +812,13 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -833,28 +835,30 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@@ -833,28 +835,30 @@ public class QBittorrentAdapter implements IDaemonAdapter {
@ -383,26 +383,22 @@ public class TTorrentAdapter implements IDaemonAdapter {
@@ -383,26 +383,22 @@ public class TTorrentAdapter implements IDaemonAdapter {