Skip to content

Commit

Permalink
Refactor allocated_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezborder authored Nov 9, 2024
1 parent df635bf commit eab6d1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/libraries/harddisk_services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ def harddisk_services
node['redborder']['manager']['hd_services'].each do |service|
service_name = service['name']
service_count = service['count']
porcentage = service_count / 100
allocated_bytes = root_dev_bytes * porcentage
allocated_bytes = root_dev_bytes * (service_count.to_f / 100)
hd_services[service_name] = allocated_bytes.to_i
end
hd_services # hard disk services sizes are pased in bytes
Expand Down

0 comments on commit eab6d1a

Please sign in to comment.