diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-08-17 10:25:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 10:25:01 +0300 |
commit | 3136ef137362e4f4bae50758964e3cbf22ff3e84 (patch) | |
tree | da88fd7690965fe66e8adface2ccec0cabe0e02d /exporting | |
parent | edea288912e88e328cbe7e37dc566bfe4e61f655 (diff) |
Fix exporting update point (#9748)
Diffstat (limited to 'exporting')
-rw-r--r-- | exporting/process_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exporting/process_data.c b/exporting/process_data.c index b3d0fdef2d..a418e1b0da 100644 --- a/exporting/process_data.c +++ b/exporting/process_data.c @@ -43,7 +43,8 @@ int mark_scheduled_instances(struct engine *engine) int instances_were_scheduled = 0; for (struct instance *instance = engine->instance_root; instance; instance = instance->next) { - if (!instance->disabled && (engine->now % instance->config.update_every < localhost->rrd_update_every)) { + if (!instance->disabled && (engine->now % instance->config.update_every >= + instance->config.update_every - localhost->rrd_update_every)) { instance->scheduled = 1; instances_were_scheduled = 1; instance->before = engine->now; |