示例#1
0
 def memory_in_use(self):
     return get_size(self.svmem.used)
示例#2
0
 def usage_percentage(self):
     return get_size(self.svmem.percent)
示例#3
0
 def available_memory(self):
     return get_size(self.svmem.available)
示例#4
0
 def total_memory(self):
     return get_size(self.svmem.total)
示例#5
0
 def usage_percentage(self):
     return get_size(self.swap.percent)
示例#6
0
 def available_memory(self):
     return get_size(self.swap.free)
示例#7
0
def test_get_size():
    assert get_size(2096) is not None