From: peusterm Date: Mon, 25 Apr 2016 09:18:39 +0000 (+0200) Subject: Cleanup. Fix. X-Git-Tag: v3.1~140^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=81d2d51c71445f24270551666b8bf379ce082d17;p=osm%2Fvim-emu.git Cleanup. Fix. --- diff --git a/src/emuvim/dcemulator/resourcemodel/upb/simple.py b/src/emuvim/dcemulator/resourcemodel/upb/simple.py index 3eab0e3..da76b96 100644 --- a/src/emuvim/dcemulator/resourcemodel/upb/simple.py +++ b/src/emuvim/dcemulator/resourcemodel/upb/simple.py @@ -168,6 +168,7 @@ class UpbSimpleCloudDcRM(BaseResourceModel): # calculate amount of memory for a single mu self.single_mu = float(e_mem) / sum([rm.dc_max_mu for rm in list(self.registrar.resource_models)]) # calculate mem for given flavor + mem_limit = self.single_mu * number_mu mem_limit = self._calculate_mem_limit_value(mem_limit) # apply to container if changed if d.mem_limit != mem_limit: