diff options
Diffstat (limited to 'internal/goprecords/order.go')
| -rw-r--r-- | internal/goprecords/order.go | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/internal/goprecords/order.go b/internal/goprecords/order.go index a20e5f9..6397e06 100644 --- a/internal/goprecords/order.go +++ b/internal/goprecords/order.go @@ -83,11 +83,20 @@ func StatsOrderList(statsOrder string) ([]CategoryMetric, error) { } func defaultStatsOrder() []CategoryMetric { - var out []CategoryMetric - for _, c := range []Category{CategoryHost, CategoryKernel, CategoryKernelMajor, CategoryKernelName} { - for _, m := range []Metric{MetricBoots, MetricUptime, MetricScore, MetricDowntime, MetricLifespan} { - out = append(out, CategoryMetric{c, m}) - } + return []CategoryMetric{ + {CategoryHost, MetricUptime}, + {CategoryHost, MetricLifespan}, + {CategoryHost, MetricDowntime}, + {CategoryHost, MetricBoots}, + {CategoryHost, MetricScore}, + {CategoryKernelMajor, MetricBoots}, + {CategoryKernelMajor, MetricUptime}, + {CategoryKernelMajor, MetricScore}, + {CategoryKernelName, MetricBoots}, + {CategoryKernelName, MetricUptime}, + {CategoryKernelName, MetricScore}, + {CategoryKernel, MetricBoots}, + {CategoryKernel, MetricUptime}, + {CategoryKernel, MetricScore}, } - return out } |
