Fix: I somehow messed up some commits by clicking the "revert" button on the github...
authorpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 18 Apr 2016 15:59:19 +0000 (17:59 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Mon, 18 Apr 2016 15:59:19 +0000 (17:59 +0200)
src/emuvim/dcemulator/resourcemodel/upb/simple.py

index 1610b6a..a127446 100644 (file)
@@ -212,6 +212,8 @@ class UpbSimpleCloudDcRM(BaseResourceModel):
         r["dc_max_mu"] = self.dc_max_mu
         r["dc_alloc_cu"] = self.dc_alloc_cu
         r["dc_alloc_mu"] = self.dc_alloc_mu
+        r["single_cu_percentage"] = self.single_cu
+        r["single_mu_percentage"] = self.single_mu
         r["allocation_state"] = allocation_state
         return r
 
@@ -244,4 +246,4 @@ class UpbSimpleCloudDcRM(BaseResourceModel):
         l["rm_state"] = self.get_state_dict()
         # append to logfile
         with open(path, "a") as f:
-            f.write("%s\n" % json.dumps(l))
+            f.write("%s\n" % json.dumps(l))
\ No newline at end of file