Commit 3719e6a6 by Diego Lima

Adicionar informacoes de cpus compartilhadas

1 parent 566b0c49
Showing with 8 additions and 1 deletions
...@@ -95,6 +95,12 @@ with open(FCATALOG) as url: ...@@ -95,6 +95,12 @@ with open(FCATALOG) as url:
add = float(DATA['gcp_price_list']['CP-COMPUTEENGINE-OS']['win']["high"]) * float(billing_cpu) add = float(DATA['gcp_price_list']['CP-COMPUTEENGINE-OS']['win']["high"]) * float(billing_cpu)
add = add + float(DATA['gcp_price_list']['CP-COMPUTEENGINE-OS'][os]["high"]) * float(billing_cpu) add = add + float(DATA['gcp_price_list']['CP-COMPUTEENGINE-OS'][os]["high"]) * float(billing_cpu)
cost = float(cost)+add cost = float(cost)+add
print('google,%s,%s,%s,%s,%s,%s' % (name, cpu, memory, cost, region, os)) if cpu == 'shared':
sharedcores = 'shared'
realcpu = 1
else:
sharedcores = 'nonshared'
realcpu = cpu
print('google,%s,%s,%s,%s,%s,%s,%s' % (name, realcpu, memory, cost, region, os, sharedcores))
else: else:
print('google,%s,%s,%s,%s,%s,%s' % (realname, cpu, memory, cost, region, os)) print('google,%s,%s,%s,%s,%s,%s' % (realname, cpu, memory, cost, region, os))
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!