mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Make sure $format_time only works when times_in_seconds is enabled
This commit is contained in:
parent
8f42831a62
commit
d9ad73af65
@ -1566,7 +1566,11 @@ void generate_text_internal(char *p, int p_max_size,
|
||||
|
||||
generate_text_internal(buf, max_user_text, *obj->sub, cur);
|
||||
obj->data.s = buf;
|
||||
print_format_time(obj, p, p_max_size);
|
||||
if(times_in_seconds) {
|
||||
print_format_time(obj, p, p_max_size);
|
||||
} else {
|
||||
NORM_ERR("Enable \"times_in_seconds\" to use $format_time");
|
||||
}
|
||||
}
|
||||
/* mail stuff */
|
||||
OBJ(mails) {
|
||||
|
Loading…
Reference in New Issue
Block a user