>>806
327行目 list_num = list_num + 1
の下に
if list_num > 10 then list_num = list_num - 10
で、最新の5or10回分だけリストされるようになります。