summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-09-21 10:42:57 +0930
committerdaniel-Jones <daniel@danieljon.es>2018-09-21 10:42:57 +0930
commita4b58b37b53860c4ae3eb2a739a24934f2c393f9 (patch)
tree0584d873f6c5b40723d58b47efc8ebf3004cf46d
parentefc77d6286fc50819ac2ca6dbfad3ab9726522cc (diff)
downloadbinstatus-a4b58b37b53860c4ae3eb2a739a24934f2c393f9.tar.gz
binstatus-a4b58b37b53860c4ae3eb2a739a24934f2c393f9.zip
only convert if the time is > 12
-rw-r--r--binstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binstatus.c b/binstatus.c
index 860529c..3881e6c 100644
--- a/binstatus.c
+++ b/binstatus.c
@@ -109,7 +109,7 @@ main(int argc, char *argv[])
while (1)
{
gettime(time);
- if (!miltime)
+ if (!miltime && time[0] > 12)
time[0] = converthour(time[0]);
formatstring(status, time);
XStoreName(dsp, DefaultRootWindow(dsp), status);