mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-11 04:56:35 +00:00
Change Sprintf interpolation to use explicit types
Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
@@ -171,8 +171,8 @@ func (c *OSCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, er
|
|||||||
c.OSInformation,
|
c.OSInformation,
|
||||||
prometheus.GaugeValue,
|
prometheus.GaugeValue,
|
||||||
1.0,
|
1.0,
|
||||||
fmt.Sprintf("Microsoft %v", product), // Caption
|
fmt.Sprintf("Microsoft %s", product), // Caption
|
||||||
fmt.Sprintf("%v.%v.%v", nwgi.Wki102_ver_major, nwgi.Wki102_ver_minor, buildNum), // Version
|
fmt.Sprintf("%d.%d.%s", nwgi.Wki102_ver_major, nwgi.Wki102_ver_minor, buildNum), // Version
|
||||||
)
|
)
|
||||||
|
|
||||||
gmse, err := sysinfoapi.GlobalMemoryStatusEx()
|
gmse, err := sysinfoapi.GlobalMemoryStatusEx()
|
||||||
|
|||||||
Reference in New Issue
Block a user