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:
parent
96ea999926
commit
3cd4212cdd
3 changed files with 42 additions and 27 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue