From 49dbada3eb269212cdfb38bcae07781e141453fc Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 9 Feb 2016 11:49:35 -0500 Subject: [PATCH] 8341: Include Keep network activity in net stats. --- .../crunchstat-summary/crunchstat_summary/summarizer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/crunchstat-summary/crunchstat_summary/summarizer.py b/tools/crunchstat-summary/crunchstat_summary/summarizer.py index a8d3fd0e99..cf748ff703 100644 --- a/tools/crunchstat-summary/crunchstat_summary/summarizer.py +++ b/tools/crunchstat-summary/crunchstat_summary/summarizer.py @@ -37,8 +37,7 @@ class Summarizer(object): # stats_max: {category: {stat: val}} self.stats_max = collections.defaultdict( - functools.partial(collections.defaultdict, - lambda: float('-Inf'))) + functools.partial(collections.defaultdict, lambda: 0)) # task_stats: {task_id: {category: {stat: val}}} self.task_stats = collections.defaultdict( functools.partial(collections.defaultdict, dict)) @@ -232,10 +231,12 @@ class Summarizer(object): self.stats_max['mem']['rss'], lambda x: x / 1e9), ('Max network traffic in a single task: {}GB', - self.stats_max['net:eth0']['tx+rx'], + self.stats_max['net:eth0']['tx+rx'] + + self.stats_max['net:keep0']['tx+rx'], lambda x: x / 1e9), ('Max network speed in a single interval: {}MB/s', - self.stats_max['net:eth0']['tx+rx__rate'], + self.stats_max['net:eth0']['tx+rx__rate'] + + self.stats_max['net:keep0']['tx+rx__rate'], lambda x: x / 1e6)): format_string, val, transform = args if val == float('-Inf'): -- 2.30.2