use getMountPoint rather than getFileSystem in getMountedFileSystemUsage
This commit is contained in:
1 parent
70ce28deec
commit
083414a22a
1 file changed
+1
-1
@@ -532,7 +532,7 @@ public class Sigar implements SigarProxy {
|
||||
public FileSystemUsage getMountedFileSystemUsage(String name)
|
||||
throws SigarException, NfsUnreachableException {
|
||||
|
||||
FileSystem fs = getFileSystemMap().getMountPoint(name);
|
||||
FileSystem fs = getFileSystemMap().getFileSystem(name);
|
||||
|
||||
if (fs == null) {
|
||||
throw new SigarException(name + " is not a mounted filesystem");
|
||||
|
||||
Reference in new issue
Block a user