]> p2p-next.cs.pub.ro Git - living-lab-site.git/blobdiff - cis/dummy_cis.py
CIS-LB: Randomized suboptimal load balancing implemented without low timeout features.
[living-lab-site.git] / cis / dummy_cis.py
index cb94a1de40857ed0968a16533080a057f885453a..5ccf928452f5c5417a1838561661d6c97e664b1a 100755 (executable)
@@ -2,6 +2,7 @@
 
 import web
 import sys
+import json
 
 urls = (
     '/(.*)', 'Hello'
@@ -13,7 +14,7 @@ print 'load is %s' % LOAD
 app = web.application(urls, globals())
 
 class Hello:
-    def GET(self, name):
+    def GET(self, request):
         if request == 'get_load':
             resp = {"load": LOAD}
             web.header('Content-Type', 'application/json')