Small cleanup
authorpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 25 Apr 2016 09:15:55 +0000 (11:15 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 25 Apr 2016 09:15:55 +0000 (11:15 +0200)
src/emuvim/dcemulator/resourcemodel/upb/simple.py

index da76b96..3eab0e3 100644 (file)
@@ -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: