forked from external/yambar
particle/progress-bar: add debug log
This commit is contained in:
parent
b0f0a1e942
commit
3027b6cd9e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue