1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

modified 'create new instance' screen with compute details

This commit is contained in:
cserma 2023-04-27 16:07:59 +03:00
parent b81b63a962
commit 891ece841e
3 changed files with 46 additions and 33 deletions

View file

@ -48,6 +48,10 @@ class Compute(Model):
@cached_property
def cpu_count(self):
return self.proxy.get_node_info()[3]
@cached_property
def cpu_usage(self):
return round(self.proxy.get_cpu_usage().get('usage'))
@cached_property
def ram_size(self):