mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-20 01:25:39 +02:00
tag: refresh_in() *must* use the realtime unit
This commit is contained in:
parent
67bd38f5df
commit
13cc11e200
3 changed files with 9 additions and 9 deletions
|
@ -129,10 +129,6 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
|
|||
|
||||
if (rt == TAG_REALTIME_NONE)
|
||||
return exposable;
|
||||
else if (rt != TAG_REALTIME_SECONDS) {
|
||||
LOG_WARN("unimplemented tag realtime unit: %d", rt);
|
||||
return exposable;
|
||||
}
|
||||
|
||||
#if 0
|
||||
long units_per_segment = (max - min) / p->width;
|
||||
|
@ -155,7 +151,7 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
|
|||
|
||||
#endif
|
||||
|
||||
if (!tag->refresh_in(tag, units_til_next_segment * 1000))
|
||||
if (!tag->refresh_in(tag, units_til_next_segment))
|
||||
LOG_WARN("failed to schedule update of tag");
|
||||
|
||||
return exposable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue