Merge pull request #170 from batman-nair/patch-1

Removed returning n/a
This commit is contained in:
tobi-wan-kenobi 2017-09-10 09:13:11 +02:00 committed by GitHub
commit 14dabcc460

View file

@ -58,9 +58,9 @@ class Module(bumblebee.engine.Module):
if estimate == power.common.TIME_REMAINING_UNLIMITED: if estimate == power.common.TIME_REMAINING_UNLIMITED:
return None return None
if estimate == power.common.TIME_REMAINING_UNKNOWN: if estimate == power.common.TIME_REMAINING_UNKNOWN:
return "n/a" return ""
except Exception: except Exception:
return "n/a" return ""
return bumblebee.util.durationfmt(estimate*60, shorten=True, suffix=True) # estimate is in minutes return bumblebee.util.durationfmt(estimate*60, shorten=True, suffix=True) # estimate is in minutes
def capacity(self, widget): def capacity(self, widget):