summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelopoerio <angelo.poerio@gmail.com>2016-08-20 18:45:15 +0200
committerangelopoerio <angelo.poerio@gmail.com>2016-08-20 18:45:15 +0200
commitdc89bfb62ce9c0278b7cf134e2924b4dca2a2d50 (patch)
treee18d21c3fbca7633ee4ad37a0aa129c6b8b37f5d
parent8b0247e97fe5a0aef5e4eb1c13f14759dd74d7be (diff)
show only in linux systems
-rw-r--r--glances/plugins/glances_irq.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/glances/plugins/glances_irq.py b/glances/plugins/glances_irq.py
index 5a1eec7d..b9406fa1 100644
--- a/glances/plugins/glances_irq.py
+++ b/glances/plugins/glances_irq.py
@@ -20,6 +20,7 @@
"""IRQ plugin."""
import operator
+from glances.globals import LINUX
from glances.timer import getTimeSinceLastUpdate
from glances.plugins.glances_plugin import GlancesPlugin
@@ -55,6 +56,9 @@ class Plugin(GlancesPlugin):
def update(self):
"""Update the IRQ stats"""
+ if not LINUX: # only available on GNU/Linux
+ return []
+
# Reset the list
self.reset()
@@ -101,6 +105,9 @@ class Plugin(GlancesPlugin):
# Init the return message
ret = []
+ if not LINUX: # only available on GNU/Linux
+ return ret
+
# Only process if stats exist and display plugin enable...
if not self.stats or args.disable_irq:
return ret