Compare commits

..

2 Commits

Author SHA1 Message Date
Zlatin Balevsky
14ee35e77a Release 0.3.9 2019-06-24 18:39:59 +01:00
Zlatin Balevsky
8773eb4ee0 fix piece size calculation 2019-06-24 18:29:00 +01:00
5 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ class Cli {
Core core
try {
core = new Core(props, home, "0.3.8")
core = new Core(props, home, "0.3.9")
} catch (Exception bad) {
bad.printStackTrace(System.out)
println "Failed to initialize core, exiting"

View File

@@ -53,7 +53,7 @@ class CliDownloader {
Core core
try {
core = new Core(props, home, "0.3.8")
core = new Core(props, home, "0.3.9")
} catch (Exception bad) {
bad.printStackTrace(System.out)
println "Failed to initialize core, exiting"

View File

@@ -297,7 +297,7 @@ public class Core {
}
}
Core core = new Core(props, home, "0.3.8")
Core core = new Core(props, home, "0.3.9")
core.startServices()
// ... at the end, sleep or execute script

View File

@@ -30,7 +30,7 @@ public class SharedFile {
long length = file.length();
int rawPieceSize = 0x1 << pieceSize;
int rv = (int) (length / rawPieceSize);
if (length % pieceSize != 0)
if (length % rawPieceSize != 0)
rv++;
return rv;
}

View File

@@ -1,5 +1,5 @@
group = com.muwire
version = 0.3.8
version = 0.3.9
groovyVersion = 2.4.15
slf4jVersion = 1.7.25
spockVersion = 1.1-groovy-2.4