Sha256: 713d426ee4534adfe4301602434bac923f85dfe6fc01d249843ed73d28398977
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
module Adminix module Services class SystemLoadService def initialize(service) @service = service end def create_stamp @service.add_system_load(Entities::SysloadStamp.new) diff = Adminix.config.data_storage_limit[:load_stamps] - @service.load_stamps.count @service.shift_load_stamps(diff.abs) if diff < 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminix-0.2 | lib/adminix/services/system_load_service.rb |