Skip to content

Commit

Permalink
#6524 fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Feb 6, 2020
1 parent 87225bd commit bd3b97f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -895,22 +895,22 @@ public long findStorageSize(Dataset dataset, boolean countCachedExtras, GetDatas
return 0L;
}

List<DataFile> filesToTalley = new ArrayList();
List<DataFile> filesToTally = new ArrayList();

if (version == null || (mode != null && mode.equals("storage"))){
filesToTalley = dataset.getFiles();
filesToTally = dataset.getFiles();
} else {
List <FileMetadata> fmds = version.getFileMetadatas();
for (FileMetadata fmd : fmds){
filesToTalley.add(fmd.getDataFile());
filesToTally.add(fmd.getDataFile());
}
}


//CACHED EXTRAS FOR DOWNLOAD?


for (DataFile datafile : filesToTalley) {
for (DataFile datafile : filesToTally) {
total += datafile.getFilesize();

if (!countCachedExtras) {
Expand Down

0 comments on commit bd3b97f

Please sign in to comment.