mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-01 16:16:35 +00:00
@@ -115,7 +115,6 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"sort"
|
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
@@ -450,12 +449,3 @@ func convertCounterValue(counterDef *perfCounterDefinition, buffer []byte, value
|
|||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort slice of objects by index. This is useful for displaying
|
|
||||||
// a human-readable list or dump, but unnecessary otherwise.
|
|
||||||
func SortObjects(p []*PerfObject) {
|
|
||||||
sort.Slice(p, func(i, j int) bool {
|
|
||||||
return p[i].NameIndex < p[j].NameIndex
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user