Sha256: cf767feafc8bd4badffe5ebff2707d7f75d74519b82f5b1a69d9fcc441f09245
Contents?: true
Size: 372 Bytes
Versions: 14
Compression:
Stored size: 372 Bytes
Contents
module ProconBypassMan class ReniceCommand def self.change_priority(to: , pid: ) cmd = case to when :high "renice -n -20 -p #{pid}" when :low "renice -n 20 -p #{pid}" else raise "unknown priority" end ProconBypassMan.logger.debug { "[SHELL] #{cmd}" } `#{cmd}` end end end
Version data entries
14 entries across 14 versions & 1 rubygems