|
@@ -360,10 +360,10 @@ class MchDataCenter(object):
|
|
|
ySucc = ySucc / (all + 0.00000001)
|
|
|
xs = np.array([stime.strftime('%H:%M', stime.localtime(d + day_stamp)) for d in x])
|
|
|
ax.yaxis.set_major_formatter(ticker.PercentFormatter(xmax=1, decimals=0))
|
|
|
- ax.plot(xs, ySucc, ls='--', marker='o', label=self._label(path, succ_count, all_count,commit_count))
|
|
|
+ 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):
|
|
|
+ def _label(self, path, count, all,commit_count,fail_count):
|
|
|
ratio = 0.00
|
|
|
if all > 0:
|
|
|
ratio = round(count * 100 / all, 2)
|
|
@@ -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}"
|
|
|
+ return f"{_chname}-{_quality}-{card_type}-{_amount}:{count}/{all} = {ratio}% {commit_count}:{fail_count}"
|
|
|
else:
|
|
|
if path == '' or path is None:
|
|
|
path = 'average'
|
|
|
- return f"{path}:{count}/{all} = {ratio}% {commit_count}"
|
|
|
+ return f"{path}:{count}/{all} = {ratio}% {commit_count}:{fail_count}"
|
|
|
pass
|
|
|
|
|
|
#统计机构当前时间之前序列时间成功率
|