mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 14:06:38 +00:00
@@ -115,7 +115,6 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"sort"
|
||||
"strings"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
@@ -450,12 +449,3 @@ func convertCounterValue(counterDef *perfCounterDefinition, buffer []byte, value
|
||||
|
||||
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