From dc85a8e936f097634722c27b5bdc12ab2af09449 Mon Sep 17 00:00:00 2001 From: Arjun Nair Date: Sat, 9 Sep 2017 23:26:39 +0530 Subject: [PATCH] Removed returning n/a Better not to show --- bumblebee/modules/battery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/battery.py b/bumblebee/modules/battery.py index f5e565e..61741ed 100644 --- a/bumblebee/modules/battery.py +++ b/bumblebee/modules/battery.py @@ -58,9 +58,9 @@ class Module(bumblebee.engine.Module): if estimate == power.common.TIME_REMAINING_UNLIMITED: return None if estimate == power.common.TIME_REMAINING_UNKNOWN: - return "n/a" + return "" except Exception: - return "n/a" + return "" return bumblebee.util.durationfmt(estimate*60, shorten=True, suffix=True) # estimate is in minutes def capacity(self, widget):