Skip to content

Commit

Permalink
sort descending
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnoveljic committed Nov 22, 2023
1 parent a04a6e1 commit dfdefb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collector/corechecks/oracle-dbm/sysmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (c *Check) SysMetrics() (int64, error) {
}

seenInGlobalMetrics := make(map[string]bool)
err = selectWrapper(c, &metricRows, fmt.Sprintf(sysMetricsQuery, "v$sysmetric")+" ORDER BY begin_time ASC, metric_name ASC")
err = selectWrapper(c, &metricRows, fmt.Sprintf(sysMetricsQuery, "v$sysmetric")+" ORDER BY begin_time DESC, metric_name ASC")
if err != nil {
return 0, fmt.Errorf("failed to collect sysmetrics: %w", err)
}
Expand Down

0 comments on commit dfdefb3

Please sign in to comment.