mirror of https://github.com/nicolargo/glances
KeyError: 'memory_info' on stats sum #1188
parent
9c3c4baf5a
commit
6260f193cd
1
NEWS
1
NEWS
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue