From 03e15a0f80cf3b136cdfd6a9cc9aea8432e7ac93 Mon Sep 17 00:00:00 2001 From: Mario Trangoni Date: Sat, 18 Dec 2021 19:05:31 +0100 Subject: [PATCH] unconvert: Remove unnecessary conversion See, ``` collector/os.go:306:10: unnecessary conversion (unconvert) float64(fsipf), ^ ``` Signed-off-by: Mario Trangoni --- collector/os.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/os.go b/collector/os.go index b6819fe7..2a55f7b0 100644 --- a/collector/os.go +++ b/collector/os.go @@ -303,7 +303,7 @@ func (c *OSCollector) collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) ( ch <- prometheus.MustNewConstMetric( c.PagingLimitBytes, prometheus.GaugeValue, - float64(fsipf), + fsipf, ) ch <- prometheus.MustNewConstMetric(