diff --git a/lib/vmstat/memory.rb b/lib/vmstat/memory.rb index 6de2346..66a5f69 100644 --- a/lib/vmstat/memory.rb +++ b/lib/vmstat/memory.rb @@ -46,17 +46,4 @@ def total_bytes (wired + active + inactive + free) * pagesize end end - - # @attr [Fixnum] available - # The estimated available memory (linux) - # See: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 - class LinuxMemory < Memory - attr_accessor :available - - # Calculate the available bytes based of the active pages. - # @return [Fixnum] active bytes - def available_bytes - available * pagesize - end - end end