浏览代码

Merge "Fix incorrect __round__ behaviour"

tags/3.0.0
Zuul Gerrit Code Review 2 个月前
父节点
当前提交
b5eaf963d0
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      rally/task/processing/charts.py

+ 5
- 1
rally/task/processing/charts.py 查看文件

@@ -330,7 +330,11 @@ class Table(Chart):
:returns: rounded float
:returns: str "n/a"
"""
return round(ins.result(), 3) if has_result else "n/a"
r = ins.result()
if not has_result or r is None:
return "n/a"
else:
return round(r, 3)

def _row_has_results(self, values):
"""Determine whether row can be assumed as having values.


正在加载...
取消
保存