mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
FIX ipmitool sensor discrete values are expressed in hex (#1402)
Signed-off-by: Nuno Tavares <n.tavares@portavita.eu>
This commit is contained in:
parent
ccf27426ad
commit
3a576f64de
|
@ -76,7 +76,7 @@ $3 ~ /RPM/ {
|
|||
}
|
||||
|
||||
$3 ~ /discrete/ {
|
||||
status[$1] = $2;
|
||||
status[$1] = sprintf("%d", substr($2,3,2));
|
||||
status["metric_count"]++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue