File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
java/edu/harvard/iq/dataverse Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -566,9 +566,10 @@ public boolean isFileUploadCountExceeded() {
566566 *
567567 * @return cached formatted storage size. '1,234 bytes'; '1.23 GB'; '1.00 TB'
568568 */
569- public String getCurrentStorageUse () {
569+ public String getCurrentContainerStorageUse () {
570570 if (storageSizeStr == null ) {
571- storageSizeStr = StringUtil .formatBytes (datafileService .currentStorageSizeInBytes (dataset ));
571+ Dataverse container = dataset .getOwner ();
572+ storageSizeStr = StringUtil .formatBytes (datafileService .currentStorageSizeInBytes (container ));
572573 }
573574 return storageSizeStr ;
574575 }
Original file line number Diff line number Diff line change 9999 < f:param value ="#{systemConfig.guidesVersion} "/>
100100 </ h:outputFormat >
101101 < h:outputFormat value =" #{bundle['file.selectToAdd.tipTotalSizeUsed']} " escape ="false ">
102- < f:param value ="#{EditDatafilesPage.currentStorageUse } "/>
102+ < f:param value ="#{EditDatafilesPage.currentContainerStorageUse } "/>
103103 </ h:outputFormat >
104104 < h:outputFormat value =" #{bundle['file.selectToAdd.tipMaxNumFiles']} " escape ="false "
105105 rendered ="#{EditDatafilesPage.maxNumberOfFiles > 0} ">
You can’t perform that action at this time.
0 commit comments