diff --git a/src/main/java/edu/harvard/iq/dataverse/DatasetServiceBean.java b/src/main/java/edu/harvard/iq/dataverse/DatasetServiceBean.java index eb77104e513..9c0eee6fbf3 100644 --- a/src/main/java/edu/harvard/iq/dataverse/DatasetServiceBean.java +++ b/src/main/java/edu/harvard/iq/dataverse/DatasetServiceBean.java @@ -895,14 +895,14 @@ public long findStorageSize(Dataset dataset, boolean countCachedExtras, GetDatas return 0L; } - List filesToTalley = new ArrayList(); + List filesToTally = new ArrayList(); if (version == null || (mode != null && mode.equals("storage"))){ - filesToTalley = dataset.getFiles(); + filesToTally = dataset.getFiles(); } else { List fmds = version.getFileMetadatas(); for (FileMetadata fmd : fmds){ - filesToTalley.add(fmd.getDataFile()); + filesToTally.add(fmd.getDataFile()); } } @@ -910,7 +910,7 @@ public long findStorageSize(Dataset dataset, boolean countCachedExtras, GetDatas //CACHED EXTRAS FOR DOWNLOAD? - for (DataFile datafile : filesToTalley) { + for (DataFile datafile : filesToTally) { total += datafile.getFilesize(); if (!countCachedExtras) {