From ca043c3e6ed061b098c17b552e265acf172b1a29 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 3 Mar 2014 22:59:33 +0100 Subject: xmobar example: round precents to nearest integer, instead of floor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/xmobar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/xmobar b/examples/xmobar index c7ec2f7..469f7cd 100644 --- a/examples/xmobar +++ b/examples/xmobar @@ -27,5 +27,5 @@ whitepoint = whitepoint[0] + whitepoint[1] + whitepoint[2] # Print information. -print('%iK %.1f° %i%%' % (whitepoint, int(temperature_now), elevation, int(dayness * 100))) +print('%iK %.1f° %.0f%%' % (whitepoint, int(temperature_now), elevation, int(dayness * 100))) -- cgit v1.2.3-70-g09d2