Method: HPE3PAR_API#convert_to_hours

Defined in:
lib/puppet/util/hpe3par_api.rb

#convert_to_hours(time, unit) ⇒ Object



409
410
411
412
413
414
415
416
417
# File 'lib/puppet/util/hpe3par_api.rb', line 409

def convert_to_hours(time, unit)
  hours = 0
  if unit == 'Days'
    hours = time * 24
  elsif unit == 'Hours'
    hours = time
  end
  return hours
end