diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-15 23:38:55 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-10-15 23:38:55 +0200 |
commit | 97d2ecbb19dd10a87ea940b2306e0136a994e62c (patch) | |
tree | 9e04694628bf9da70f65a04cf31cb2d63c37ec53 /cpuinf.lua | |
parent | 4d1af1e5ade06242c4a7580446781c9ab2b0f2fa (diff) | |
download | vicious-legacy-97d2ecbb19dd10a87ea940b2306e0136a994e62c.tar.xz |
bat: better returns when handling insufficient data
If we return "N/A" like we usually do then format string "$1$2" would
look like "N/AN/A". If "/" is returned a progressbar could be
broken. Now returns are: symbol for state "unknown", 0 for battery
charge, N/A for remaining time.
Diffstat (limited to 'cpuinf.lua')
0 files changed, 0 insertions, 0 deletions