summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-26 09:44:57 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-26 09:44:57 +0100
commitfad80f98d45fbda40ebb5140517d75c6dbae864f (patch)
tree2eeffbb0e033775257629d859fcbaebb58acb6cf /examples
parentm gitignore (diff)
downloadblueshift-fad80f98d45fbda40ebb5140517d75c6dbae864f.tar.gz
blueshift-fad80f98d45fbda40ebb5140517d75c6dbae864f.tar.bz2
blueshift-fad80f98d45fbda40ebb5140517d75c6dbae864f.tar.xz
xmobar example derp: %.2f % dayness => %i % dayness*100
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/xmobar2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmobar b/examples/xmobar
index f25d984..c7ec2f7 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° %.2f%%' % (whitepoint, int(temperature_now), elevation, dayness))
+print('<fc=#%s>%i</fc>K %.1f° %i%%' % (whitepoint, int(temperature_now), elevation, int(dayness * 100)))