Skip to content

Commit c2fa55f

Browse files
jgrosseoktf
authored andcommitted
Increase counter before sending metric
1 parent eb78db9 commit c2fa55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run/dpl_eventgen.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ struct GeneratorTask {
101101
}
102102

103103
// report number of TFs injected for the rate limiter to work
104-
pc.services().get<o2::monitoring::Monitoring>().send(o2::monitoring::Metric{(uint64_t)tfCounter, "df-sent"}.addTag(o2::monitoring::tags::Key::Subsystem, o2::monitoring::tags::Value::DPL));
105104
++tfCounter;
105+
pc.services().get<o2::monitoring::Monitoring>().send(o2::monitoring::Metric{(uint64_t)tfCounter, "df-sent"}.addTag(o2::monitoring::tags::Key::Subsystem, o2::monitoring::tags::Value::DPL));
106106
bool time_expired = false;
107107
if (ttl > 0) {
108108
timer.Stop();

0 commit comments

Comments
 (0)