mirror of https://github.com/apache/cloudstack.git
secondary-storage: fix account template directory size (#5048)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
4ec337fd2a
commit
dafa377086
|
|
@ -3258,7 +3258,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
|||
long accountTemplateDirSize = 0;
|
||||
File accountTemplateDir = new File(rootDir + getTemplatePathForAccount(accountId));
|
||||
if (accountTemplateDir.exists()) {
|
||||
FileUtils.sizeOfDirectory(accountTemplateDir);
|
||||
accountTemplateDirSize = FileUtils.sizeOfDirectory(accountTemplateDir);
|
||||
}
|
||||
long accountVolumeDirSize = 0;
|
||||
File accountVolumeDir = new File(rootDir + getVolumePathForAccount(accountId));
|
||||
|
|
|
|||
Loading…
Reference in New Issue