diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-03 22:59:33 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-03 22:59:33 +0100 |
commit | ca043c3e6ed061b098c17b552e265acf172b1a29 (patch) | |
tree | c0fa0806e9433947454fa1cb3799aaad2bd31ac0 | |
parent | extend doc for sleepmode example (diff) | |
download | blueshift-ca043c3e6ed061b098c17b552e265acf172b1a29.tar.gz blueshift-ca043c3e6ed061b098c17b552e265acf172b1a29.tar.bz2 blueshift-ca043c3e6ed061b098c17b552e265acf172b1a29.tar.xz |
xmobar example: round precents to nearest integer, instead of floor
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | examples/xmobar | 2 |
1 files changed, 1 insertions, 1 deletions
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('<fc=#%s>%i</fc>K %.1f° %i%%' % (whitepoint, int(temperature_now), elevation, int(dayness * 100))) +print('<fc=#%s>%i</fc>K %.1f° %.0f%%' % (whitepoint, int(temperature_now), elevation, int(dayness * 100))) |