Fixing error while getting free space refs #25118
This commit is contained in:
parent
9e55163a18
commit
ac94d42dd8
|
@ -437,7 +437,7 @@ public class HostingNodeManager {
|
|||
try {
|
||||
PersistenceConfiguration persistenceConfiguration = containerContext.configuration().persistenceConfiguration();
|
||||
FileStore fileStore = Files
|
||||
.getFileStore(Paths.get(persistenceConfiguration.getImplementationClass().newInstance().getLocation()));
|
||||
.getFileStore(Paths.get(persistenceConfiguration.getWriterConfiguration().getLocation()));
|
||||
free = fileStore.getUsableSpace() / 1048576; // 1048576 = 1024*1024
|
||||
// user to convert
|
||||
// bytes in MByte
|
||||
|
|
Loading…
Reference in New Issue