Sha256: 2328446a031ec4e6c5b27f691496dd0a409cc5ac0460faa7d4e1194cb08fdb8d
Contents?: true
Size: 441 Bytes
Versions: 8
Compression:
Stored size: 441 Bytes
Contents
total_memory = attrib?("memorysize") if total_memory if total_memory =~ /MB$/ total_memory.gsub!(/ MB/, '') total_memory = total_memory.to_f else total_memory.gsub!(/ GB/, '') total_memory = total_memory.to_f * 1024 end buffer_pool_size = total_memory * 0.75 buffer_pool_size = buffer_pool_size.to_i add_attrib("innodb_buffer_pool_size", buffer_pool_size.to_s + "M") unless attrib?("innodb_buffer_pool_size") end
Version data entries
8 entries across 8 versions & 2 rubygems