projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CIS-LB: Randomized suboptimal load balancing implemented without low timeout features.
[living-lab-site.git]
/
cis
/
dummy_cis.py
diff --git
a/cis/dummy_cis.py
b/cis/dummy_cis.py
index
cb94a1d
..
5ccf928
100755
(executable)
--- a/
cis/dummy_cis.py
+++ b/
cis/dummy_cis.py
@@
-2,6
+2,7
@@
import web
import sys
import web
import sys
+import json
urls = (
'/(.*)', 'Hello'
urls = (
'/(.*)', 'Hello'
@@
-13,7
+14,7
@@
print 'load is %s' % LOAD
app = web.application(urls, globals())
class Hello:
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')
if request == 'get_load':
resp = {"load": LOAD}
web.header('Content-Type', 'application/json')