change duration to ms instead of ns

use better naming for last interface
This commit is contained in:
Robin Olsen
2026-03-10 13:30:53 +01:00
parent 7feec35c18
commit 8945341250
2 changed files with 10 additions and 10 deletions

View File

@@ -74,8 +74,8 @@ func (s *StatisticsService) RecordTaskRun(ctx context.Context, run models.TaskRu
}
stats.EndTime = now
stats.Duration = stats.EndTime.Sub(stats.StartTime)
stats.InterfaceType = run.InterfaceType
stats.DurationMs = stats.EndTime.Sub(stats.StartTime).Milliseconds()
stats.LastInterfaceType = run.InterfaceType
stats.TaskRuns++
stats.LastTaskName = run.TaskName