add Mem.Actual{Free,Used}
This commit is contained in:
parent
fee5b18641
commit
6e7e2a4b0d
|
@ -74,7 +74,35 @@ my %classes = (
|
|||
},
|
||||
{
|
||||
name => 'free', type => 'Long',
|
||||
desc => 'Total free system memory',
|
||||
desc => 'Total free system memory (e.g. Linux plus cached)',
|
||||
plat => '*',
|
||||
cmd => {
|
||||
AIX => '',
|
||||
Darwin => '',
|
||||
FreeBSD => '',
|
||||
HPUX => '',
|
||||
Linux => 'free',
|
||||
Solaris => '',
|
||||
Win32 => 'taskman',
|
||||
},
|
||||
},
|
||||
{
|
||||
name => 'actual_used', type => 'Long',
|
||||
desc => 'Actual total used system memory (e.g. Linux minus buffers)',
|
||||
plat => '*',
|
||||
cmd => {
|
||||
AIX => '',
|
||||
Darwin => '',
|
||||
FreeBSD => '',
|
||||
HPUX => '',
|
||||
Linux => 'free',
|
||||
Solaris => '',
|
||||
Win32 => 'taskman',
|
||||
},
|
||||
},
|
||||
{
|
||||
name => 'actual_free', type => 'Long',
|
||||
desc => 'Actual total free system memory',
|
||||
plat => '*',
|
||||
cmd => {
|
||||
AIX => '',
|
||||
|
|
|
@ -20,6 +20,10 @@ public class TestMem extends SigarTestCase {
|
|||
|
||||
assertGtZeroTrace("Free", mem.getFree());
|
||||
|
||||
assertGtZeroTrace("ActualUsed", mem.getUsed());
|
||||
|
||||
assertGtZeroTrace("ActualFree", mem.getFree());
|
||||
|
||||
assertGtZeroTrace("Ram", mem.getRam());
|
||||
|
||||
assertTrue((mem.getRam() % 8) == 0);
|
||||
|
|
Loading…
Reference in New Issue