changed the discriminant for which split the file

This commit is contained in:
Miriam Baglioni 2020-10-30 17:52:22 +01:00
parent 0fba08eae4
commit dabb33e018
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class MakeTar implements Serializable {
final long numberOfSplits = sourceSize / bytesPerSplit; final long numberOfSplits = sourceSize / bytesPerSplit;
if (numberOfSplits <= 1) { if (numberOfSplits < 2) {
write(fileSystem, inputPath, outputPath + ".tar", dir_name); write(fileSystem, inputPath, outputPath + ".tar", dir_name);
} else { } else {
int partNum = 0; int partNum = 0;