On Windows, Glances try to display unexisting Load stats #871

pull/893/head
Nicolargo 2016-06-10 17:20:48 +02:00
parent f2a5df0070
commit 1810064852
2 changed files with 4 additions and 3 deletions

3
NEWS
View File

@ -34,7 +34,8 @@ Bugs corrected:
* [Web UI] Fix folders plugin never displayed (issue #829)
* Correct issue IP plugin: VPN with no internet access (issue #842)
* Idle process is back on FreeBSD and Windows (issue #844)
* Top 3 processes are back in the alert summay
* On Windows, Glances try to display unexisting Load stats (issue #871)
* Top 3 processes are back in the alert summary
Version 2.6.1
=============

View File

@ -136,8 +136,8 @@ class Plugin(GlancesPlugin):
# Init the return message
ret = []
# Only process if stats exist and plugin not disabled
if not self.stats or args.disable_load:
# Only process if stats exist, not empty (issue #871) and plugin not disabled
if not self.stats or (self.stats == {}) or args.disable_load:
return ret
# Build the string message