merges newActivity into curActivity, returns curActivity
(curActivity *telemetrydata.TEventProps, newActivity telemetrydata.TEventProps)
| 149 | |
| 150 | // merges newActivity into curActivity, returns curActivity |
| 151 | func mergeActivity(curActivity *telemetrydata.TEventProps, newActivity telemetrydata.TEventProps) { |
| 152 | curActivity.ActiveMinutes += newActivity.ActiveMinutes |
| 153 | curActivity.FgMinutes += newActivity.FgMinutes |
| 154 | curActivity.OpenMinutes += newActivity.OpenMinutes |
| 155 | curActivity.WaveAIActiveMinutes += newActivity.WaveAIActiveMinutes |
| 156 | curActivity.WaveAIFgMinutes += newActivity.WaveAIFgMinutes |
| 157 | curActivity.TermCommandsRun += newActivity.TermCommandsRun |
| 158 | curActivity.TermCommandsRemote += newActivity.TermCommandsRemote |
| 159 | curActivity.TermCommandsDurable += newActivity.TermCommandsDurable |
| 160 | curActivity.TermCommandsWsl += newActivity.TermCommandsWsl |
| 161 | if newActivity.AppFirstDay { |
| 162 | curActivity.AppFirstDay = true |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | // ignores the timestamp in tevent, and uses the current time |
| 167 | func updateActivityTEvent(ctx context.Context, tevent *telemetrydata.TEvent) error { |
no outgoing calls
no test coverage detected