Explain the point of this.

This commit is contained in:
jan grant
2019-07-05 15:18:02 +01:00
parent d5611ca96f
commit de75277364

View File

@@ -331,6 +331,9 @@ func (c *call) AddUserExecutionTime(dur time.Duration) {
c.userExecTime = new(time.Duration)
}
*c.userExecTime += dur
// We expose this on the upstream models.Call also.
// CallListeners have access to the latter, but not the internals of the agent, so any
// reporting or bean-counting that's going on from there will need access to this.
c.Model().ExecutionDuration = *c.userExecTime
}