diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-04-23 11:47:39 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-04-23 11:48:25 +0200 |
commit | 85a5bd538583f33dc63e072cfa4b3b6750958191 (patch) | |
tree | 75e0c78338d36c7f13405d26200d11c957bb6bfa /resources/tools/presentation/utils.py | |
parent | 3e76a9c1f1732bc0f9cc0f604ae292b6c71629f2 (diff) |
Report: data
Change-Id: I63a4a6f65aa80a4edb11b1ea3ece9787a148f6f2
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/utils.py')
-rw-r--r-- | resources/tools/presentation/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/tools/presentation/utils.py b/resources/tools/presentation/utils.py index 2fbf70cadc..0e72a06343 100644 --- a/resources/tools/presentation/utils.py +++ b/resources/tools/presentation/utils.py @@ -36,7 +36,10 @@ def mean(items): :rtype: float """ - return float(sum(items)) / len(items) + if len(items): + return float(sum(items)) / len(items) + else: + return None def stdev(items): |