File "/root/fanxie/faore.
py",
line 227,
in pick_at
# 全在冷却: 取最久没用过的
a = min(avail, keymbda x: st.
get(str(x.
get("id")), {}).
get(st_used", 0))
rec = st.
get(str(a.
get("id")), {})
rec[st_used"] = now
st[str(a.
get("id"))] = rec
save_state(st)
return a
def reset_rr:
global _rr_idx
File "/root/fanxie/faore.
py",
line 143,
in save_state
d = _load_json(STATE_FILE, {})
return d if isinstance(d, dict) else {}
def save_state(st):
_save_json(STATE_FILE, st)
def get_state(_id):
return load_state.
get(str(_id), {})
File "/root/fanxie/faore.
py",
line 43,
in _save_json
def _save_json(path, data):
tmp = path + ".
本章未完,请翻下一页继续阅读.........