particle/progress-bar: add debug log

This commit is contained in:
Daniel Eklöf 2018-12-28 14:05:17 +01:00
parent b0f0a1e942
commit 3027b6cd9e

View file

@ -94,6 +94,8 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
long min = tag->min(tag); long min = tag->min(tag);
long max = tag->max(tag); long max = tag->max(tag);
LOG_DBG("%s: value=%ld, min=%ld, max=%ld", tag->name(tag), value, min, max);
long fill_count = max == min ? 0 : p->width * value / (max - min); long fill_count = max == min ? 0 : p->width * value / (max - min);
long empty_count = p->width - fill_count; long empty_count = p->width - fill_count;