Sha256: 98f41a731809bdcce6df4196295164ebed0b6039142027d514fba51b931a9889
Contents?: true
Size: 355 Bytes
Versions: 18
Compression:
Stored size: 355 Bytes
Contents
module Bluepill module ProcessConditions class MemUsage < ProcessCondition def initialize(options = {}) @below = options[:below] end def run(pid) # rss is on the 5th col System.memory_usage(pid).to_f end def check(value) value.kilobytes < @below end end end end
Version data entries
18 entries across 18 versions & 1 rubygems