From b47737b0bea6974693da7b5583859ffc53508198 Mon Sep 17 00:00:00 2001 From: Deezzir Date: Thu, 19 Dec 2024 21:38:04 -0500 Subject: [PATCH] Rename var Signed-off-by: Deezzir --- smartctl.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/smartctl.go b/smartctl.go index 9207bd1..4909e40 100644 --- a/smartctl.go +++ b/smartctl.go @@ -468,13 +468,12 @@ func (smart *SMARTctl) mineSCSIBytesWritten() { } func (smart *SMARTctl) mineSmartStatus() { - passed_raw := smart.json.Get("smart_status.passed") - - if passed_raw.Exists() { + smartStatus := smart.json.Get("smart_status.passed") + if smartStatus.Exists() { smart.ch <- prometheus.MustNewConstMetric( metricDeviceSmartStatus, prometheus.GaugeValue, - passed_raw.Float(), + smartStatus.Float(), smart.device.device, ) }