Removed returning n/a

Better not to show
This commit is contained in:
Arjun Nair 2017-09-09 23:26:39 +05:30 committed by GitHub
parent a08db28da0
commit dc85a8e936

View file

@ -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):