Skip to content

Commit

Permalink
Merge pull request #52 from knikolla/sxm4_2
Browse files Browse the repository at this point in the history
Add cost property for sxm4
  • Loading branch information
knikolla authored Apr 3, 2024
2 parents a642229 + 5d2f0f7 commit 710ec63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/openstack_billing_db/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class ProjectInvoice(object):
def cpu_su_cost(self):
return self.rates.cpu * self.cpu_su_hours

@property
def gpu_a100sxm4_su_cost(self):
return self.rates.gpu_a100sxm4 * self.gpu_a100sxm4_su_hours

@property
def gpu_a100_su_cost(self):
return self.rates.gpu_a100 * self.gpu_a100_su_hours
Expand Down

0 comments on commit 710ec63

Please sign in to comment.