j
k
j a
j l
+ def get_stat_level(stat, level) + return level if level >= 3
接口有点别扭。 去掉level参数吧。 这种在高层处理比较合适。
+ return 3 if stat.match(/error|fail/i)
nr_fail=0 在这里会被错误匹配
+ return 2 if stat.match(/warn/i) + + return 0 + end
Back to the thread
Back to the list