Skip to content

Commit

Permalink
This should make the filesize setting logic less confusing potentially
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Nov 26, 2024
1 parent 28e25ea commit 1325cee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public List<DataFile> saveAndAddFilesToDataset(DatasetVersion version,
if (fileSizeLimit == null || confirmedFileSize < fileSizeLimit) {

//set file size
if (dataFile.getFilesize() < 1) {
if (dataFile.getFilesize() < 0) {
logger.fine("Setting file size: " + confirmedFileSize);
dataFile.setFilesize(confirmedFileSize);
}
Expand Down

0 comments on commit 1325cee

Please sign in to comment.