diff --git a/lib/refrepo/input_loader.rb b/lib/refrepo/input_loader.rb index 3025fea079eac68618871333467eaebaec26050e..54068d01b45bab3b8b8c98a409db728b35214f4a 100644 --- a/lib/refrepo/input_loader.rb +++ b/lib/refrepo/input_loader.rb @@ -295,8 +295,8 @@ def add_theorical_flops(h) site['clusters'].each_pair do |cluster_uid, cluster| cluster['nodes'].select { |k, v| v['status'] != 'retired' }.each_pair do |node_uid, node| node['performance'] = {} - node['performance']['core_flops'] = node['processor']['clock_speed'] * get_flops_per_cycle(node['processor']['microarchitecture'], node['processor']['other_description']) - node['performance']['node_flops'] = node['architecture']['nb_cores'] * node['performance']['core_flops'] + node['performance']['core_flops'] = node['processor']['clock_speed'].to_i * get_flops_per_cycle(node['processor']['microarchitecture'], node['processor']['other_description']) + node['performance']['node_flops'] = node['architecture']['nb_cores'].to_i * node['performance']['core_flops'].to_i end end end