提交 6260f193 编写于 作者: N nicolargo

KeyError: 'memory_info' on stats sum #1188

上级 9c3c4baf
......@@ -24,6 +24,7 @@ Bugs corrected:
* Add missing mount-observe and system-observe interfaces #1179
* OS specific arguments should be documented and reported #1180
* 'ascii' codec can't encode character u'\U0001f4a9' in position 4: ordinal not in range(128) #1185
* KeyError: 'memory_info' on stats sum #1188
Backward-incompatible changes:
......
......@@ -605,6 +605,9 @@ class Plugin(GlancesPlugin):
# Compute stats summary
ret = 0
for p in self.stats:
if key not in p:
# Correct issue #1188
continue
if indice is None:
ret += p[key]
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册