lib/hawatel_ps/linux/proc_fetch.rb
def process_io_set_nil(attrs)
          ['rchar','wchar','syscr','syscw','read_bytes','write_bytes','cancelled_write_bytes'].each do |attr|
            attrs[:"#{attr}"] = 'Permission denied'
          end
        end
# Set default value for i/o attributes in attrs container
#
# @param attrs [Hash] hash list contains process attributes
Set default value for i/o attributes in attrs container
Set default value for i / o attributes in attrs container
def process_io_set_nil(attrs)
          ['rchar','wchar','syscr','syscw','read_bytes','write_bytes','cancelled_write_bytes'].each do |attr|
            attrs[:"#{attr}"] = 'Permission denied'
          end
        end
def process_io_set_nil ( attrs ) [ 'rchar' , 'wchar' , 'syscr' , 'syscw' , 'read_bytes' , 'write_bytes' , 'cancelled_write_bytes' ] . each do | attr | attrs [ :" #{ attr } " ] = 'Permission denied' end end
Set default value for i/o attributes in attrs container
Set default value for i / o attributes in attrs container
attrs
hash list contains process attributes
hash list contains process attributes