From 2522b428b6246ddcf96e921ac4bcbe8476a5dfe9 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 14 Feb 2019 20:09:41 +0100 Subject: [PATCH] [modules/prime] Minor fix for return type Also, add module to doc --- README.md | 2 +- bumblebee/modules/prime.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a19a92a..ea7904f 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Test Coverage](https://codeclimate.com/github/tobi-wan-kenobi/bumblebee-status/badges/coverage.svg)](https://codeclimate.com/github/tobi-wan-kenobi/bumblebee-status/coverage) [![Issue Count](https://codeclimate.com/github/tobi-wan-kenobi/bumblebee-status/badges/issue_count.svg)](https://codeclimate.com/github/tobi-wan-kenobi/bumblebee-status) -**Many, many thanks to all contributors! As of now, 35 of the modules are from various contributors (!), and only 18 from myself.** +**Many, many thanks to all contributors! As of now, 36 of the modules are from various contributors (!), and only 18 from myself.** ![Solarized Powerline](https://github.com/tobi-wan-kenobi/bumblebee-status/blob/master/screenshots/themes/powerline-solarized.png) diff --git a/bumblebee/modules/prime.py b/bumblebee/modules/prime.py index fbe4c62..542ae20 100644 --- a/bumblebee/modules/prime.py +++ b/bumblebee/modules/prime.py @@ -56,7 +56,7 @@ class Module(bumblebee.engine.Module): try: res = bumblebee.util.execute("prime-select query") except RuntimeError: - return ["n/a"] + return "n/a" for line in res.split("\n"): if not line: continue @@ -64,6 +64,6 @@ class Module(bumblebee.engine.Module): return self.nvidiastring if "intel" in line: return self.intelstring - return ["n/a"] + return "n/a" # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4