mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
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 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 empty_count = p->width - fill_count;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue