Lines Matching refs:s
37 s = window.get(sid)
38 if s and s.get(key):
39 total += s.get(key) > 0 and 1 or 0
45 s = window.get(sid)
46 if s and s.get(key):
47 total += s.get(key)
126 def run_move(s, decision): argument
127 s.write("slabs reassign " + str(decision[0]) + " " + str(decision[1]) + "\r\n")
128 line = s.readline().rstrip()
165 def read_stats(s): argument
170 s.write("stats " + statcmd + "\r\n")
172 line = s.readline().rstrip()
213 s = c.makefile(mode="rw", buffering=1) variable
214 s.write("slabs automove 0\r\n")
215 print(s.readline().rstrip())
217 stats_post = read_stats(s)
225 run_move(s, decision)