From f3f76e9b47492b60f9fc6e7735be332d36b97eaa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 29 Mar 2015 01:06:31 +0100 Subject: small fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/plugins/cpuonline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/plugins/cpuonline') diff --git a/examples/plugins/cpuonline b/examples/plugins/cpuonline index 1f99478..8853204 100644 --- a/examples/plugins/cpuonline +++ b/examples/plugins/cpuonline @@ -13,7 +13,7 @@ OUTPUT, HEIGHT, YPOS, TOP = 0, 12, 24, True def redraw(): cpu = CPUOnline() - s = lambda cpus : ', '.join([str(i) for i in cpus]) + s = lambda cpus : '(none)' if len(cpus) == 0 else ', '.join([str(i) for i in cpus]) text = 'Online: %s │ Offline: %s │ Present: %s │ Possible: %s' text %= s(cpu.online), s(cpu.offline), s(cpu.present), s(cpu.possible) bar.clear() -- cgit v1.2.3-70-g09d2