From: peusterm Date: Mon, 25 Apr 2016 09:15:55 +0000 (+0200) Subject: Small cleanup X-Git-Tag: v3.1~140^2~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=83b82187f04f6140fae81ca417e212e237675e2a;p=osm%2Fvim-emu.git Small cleanup --- diff --git a/src/emuvim/dcemulator/resourcemodel/upb/simple.py b/src/emuvim/dcemulator/resourcemodel/upb/simple.py index da76b96..3eab0e3 100644 --- a/src/emuvim/dcemulator/resourcemodel/upb/simple.py +++ b/src/emuvim/dcemulator/resourcemodel/upb/simple.py @@ -168,7 +168,6 @@ 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: