mirror of https://gitee.com/stylefeng/roses
【7.0.3】更新oshi版本
parent
0a9291da3a
commit
e9e8e5be5a
|
@ -173,8 +173,8 @@ public class SystemHardwareCalculator {
|
|||
*/
|
||||
private void setSysFiles(OperatingSystem os) {
|
||||
FileSystem fileSystem = os.getFileSystem();
|
||||
OSFileStore[] fsArray = fileSystem.getFileStores();
|
||||
for (OSFileStore fs : fsArray) {
|
||||
List<OSFileStore> fsList = fileSystem.getFileStores();
|
||||
for (OSFileStore fs : fsList) {
|
||||
long free = fs.getUsableSpace();
|
||||
long total = fs.getTotalSpace();
|
||||
long used = total - free;
|
||||
|
|
Loading…
Reference in New Issue