mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
UI - Update host-specific performance impact calculations (#15706)
## Fixes an existing bug in calculating performance impact for host-specifc query stats --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com> Co-authored-by: Sarah Gillespie <73313222+gillespi314@users.noreply.github.com>
This commit is contained in:
parent
bfd54b8868
commit
369b3feb35
1 changed files with 4 additions and 2 deletions
|
|
@ -136,9 +136,11 @@ const enhanceScheduleData = (
|
|||
discard_data,
|
||||
automations_enabled,
|
||||
} = query;
|
||||
// getPerformanceImpactDescription takes aggregate p50 values
|
||||
// getPerformanceImpactDescription takes aggregate p50 values so we need to divide by total executions in order to show average performance per query execution
|
||||
const scheduledQueryPerformance = {
|
||||
user_time_p50: user_time,
|
||||
system_time_p50: system_time,
|
||||
user_time_p50: executions > 0 ? user_time / executions : 0,
|
||||
system_time_p50: executions > 0 ? system_time / executions : 0,
|
||||
total_executions: executions,
|
||||
};
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue