Harmonize query call layout

This commit is contained in:
Calle Pettersson
2018-06-06 11:35:13 +02:00
parent 667d06116d
commit cd365c6a3b
4 changed files with 27 additions and 14 deletions

View File

@@ -90,7 +90,8 @@ type Win32_PerfRawData_PerfOS_System struct {
func (c *SystemCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, error) {
var dst []Win32_PerfRawData_PerfOS_System
if err := wmi.Query(queryAll(&dst), &dst); err != nil {
q := queryAll(&dst)
if err := wmi.Query(q, &dst); err != nil {
return nil, err
}