Commit Graph

6 Commits

Author SHA1 Message Date
Alex Corkwell
3c6d2167e5 uptime: Check seconds_alert against raw seconds (#555)
Originally, uptime checked seconds_alert against seconds to determine
whether to use color_alert, but if {days}, {hours}, or {mins} is used in
the format string, seconds is truncated to exclude anything above a day,
hour, or minute respectively.
This caused seconds to always be below a seconds_alert value greater
than a day, for example, if {days} is used, so the alert color was never
used.
Fix this by saving and checking against the raw seconds that were
originally read.
2017-04-15 14:58:00 +07:00
enkore
612b8b07eb Update modules to a7583a9
Not updated for various reasons:
clock,
dpms,
gpu_temp,
load,
mail,
mem_bar,
modsde,
net_speed,
pianobar,
pulseaudio,
regex [no named formatters],
runwatch,
shell,
solaar,
temp,
text,
updates,
weather,
whosonlocation,
xkblayout,
zabbix


This might break something: I can't test all these modules. If it does,
file a bug / open a PR / send me a note.
2016-01-27 19:53:33 +01:00
SyxbEaEQ2
9dea4258a4 Added proper formatter for uptime module 2015-07-24 14:52:43 +02:00
enkore
d1725228d0 PEP 8 (I'm bored): uptime 2014-10-14 16:44:40 +02:00
Argish42
e2cb6b8d49 TimeWrapper 2014-08-07 11:08:22 +02:00
Argish42
f6e9e4d456 Uptime 2014-08-06 23:57:06 +02:00