add file_system_usage_t.used field
This commit is contained in:
1 parent
4beb4e6fc4
commit
22452e99fc
12 files changed
+17
-2
No files matched your search
@@ -453,6 +453,11 @@ my %classes = (
|
||||
desc => 'Total free bytes on filesytem',
|
||||
plat => '*'
|
||||
},
|
||||
{
|
||||
name => 'used', type => 'Long',
|
||||
desc => 'Total used bytes on filesystem',
|
||||
plat => '*'
|
||||
},
|
||||
{
|
||||
name => 'avail', type => 'Long',
|
||||
desc => 'Total free bytes on filesytem available to caller',
|
||||
|
||||
@@ -49,8 +49,9 @@ public class TestFileSystem extends SigarTestCase {
|
||||
//possible machines have full filesystems
|
||||
assertGtEqZeroTrace(" Free", usage.getFree());
|
||||
assertGtEqZeroTrace(" Avail", usage.getAvail());
|
||||
assertGtEqZeroTrace(" Used", usage.getUsed());
|
||||
double usePercent = usage.getUsePercent() * 100;
|
||||
traceln(" Used=" + usePercent + "%");
|
||||
traceln(" Usage=" + usePercent + "%");
|
||||
assertTrue(usePercent <= 100.0);
|
||||
default:
|
||||
traceln(" DiskReads=" + usage.getDiskReads());
|
||||
|
||||
Reference in new issue
Block a user