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

fix cpu_usage waiting for instance creation.

This commit is contained in:
catborise 2023-05-18 14:35:19 +03:00
parent 54954137c2
commit 91ec098aa0
2 changed files with 4 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class Compute(Model):
@cached_property
def cpu_usage(self):
return round(self.proxy.get_cpu_usage().get('usage'))
return round(self.proxy.get_cpu_usage(diff=False).get('usage'))
@cached_property
def ram_size(self):