1
0
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:
Nikolas Garofil 2009-11-18 20:27:53 +01:00
parent 8f42831a62
commit d9ad73af65

View File

@ -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) {