|
@@ -363,10 +363,10 @@ class MchDataCenter(object):
|
|
|
ax.plot(xs, ySucc, ls='--', marker='o', label=self._label(path, succ_count, all_count,commit_count,fail_count))
|
|
|
return True
|
|
|
|
|
|
- def _label(self, path, count, all,commit_count,fail_count):
|
|
|
+ def _label(self, path, succ_count, all, commit_count, fail_count):
|
|
|
ratio = 0.00
|
|
|
if all > 0:
|
|
|
- ratio = round(count * 100 / all, 2)
|
|
|
+ ratio = round(succ_count * 100 / all, 2)
|
|
|
|
|
|
items = re.split(r'/', path)
|
|
|
if len(items) == 6:
|
|
@@ -384,11 +384,11 @@ class MchDataCenter(object):
|
|
|
card_type = 'DX'
|
|
|
elif _card_type == '7':
|
|
|
card_type = 'TH'
|
|
|
- return f"{_chname}-{_quality}-{card_type}-{_amount}:{count}/{all} = {ratio}% {commit_count}:{fail_count}"
|
|
|
+ return f"{_chname}-{_quality}-{card_type}-{_amount}:{succ_count}/{all} = {ratio}% {commit_count}:{fail_count}"
|
|
|
else:
|
|
|
if path == '' or path is None:
|
|
|
path = 'average'
|
|
|
- return f"{path}:{count}/{all} = {ratio}% {commit_count}:{fail_count}"
|
|
|
+ return f"{path}:{succ_count}/{all} = {ratio}% {commit_count}:{fail_count}"
|
|
|
pass
|
|
|
|
|
|
#统计机构当前时间之前序列时间成功率
|