Merge pull request #19 from grimsi/release-1.1.3

Release 1.1.3
This commit is contained in:
Simon
2022-08-17 14:32:48 +02:00
committed by GitHub
4 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
<parent>
<artifactId>gameyfin</artifactId>
<groupId>de.grimsi</groupId>
<version>1.1.2</version>
<version>1.1.3</version>
</parent>
<artifactId>gameyfin-backend</artifactId>
@@ -104,8 +104,19 @@ public class GameMapper {
stopWatch.start();
// Some benchmarks I did have shown that trying to parallelize this process makes it slower instead of faster
long fileSize = FileUtils.sizeOfDirectory(path.toFile());
long fileSize;
if(Files.isDirectory(path)) {
// Some benchmarks I did have shown that trying to parallelize this process makes it slower instead of faster
fileSize = FileUtils.sizeOfDirectory(path.toFile());
} else {
try{
fileSize = Files.size(path);
} catch (IOException e) {
log.error("Error while calculating size of file '{}'.", path);
fileSize = -1L;
}
}
stopWatch.stop();
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>gameyfin</artifactId>
<groupId>de.grimsi</groupId>
<version>1.1.2</version>
<version>1.1.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>
+1 -1
View File
@@ -5,7 +5,7 @@
<groupId>de.grimsi</groupId>
<artifactId>gameyfin</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>
<name>gameyfin</name>
<description>gameyfin</description>