From f56e8fcdf48ead56f1f149dbf1301ac028ef589b Mon Sep 17 00:00:00 2001 From: Matt Bostock Date: Fri, 8 Jun 2018 18:21:19 +0100 Subject: [PATCH] Fix spelling of celsius in IPMI example script (#967) 'Celsius' should be spelt with an 's': https://en.wikipedia.org/wiki/Celsius Signed-off-by: Matt Bostock --- text_collector_examples/ipmitool | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/text_collector_examples/ipmitool b/text_collector_examples/ipmitool index bb38c910..1b1ad9fd 100755 --- a/text_collector_examples/ipmitool +++ b/text_collector_examples/ipmitool @@ -29,13 +29,13 @@ BEGIN { namespace = "node_ipmi_"; # Friendly description of the type of sensor for HELP. - help["temperature_celcius"] = "Temperature"; + help["temperature_celsius"] = "Temperature"; help["volts"] = "Voltage"; help["power_watts"] = "Power"; help["speed_rpm"] = "Fan"; help["status"] = "Chassis status"; - temperature_celcius["metric_count"] = 0; + temperature_celsius["metric_count"] = 0; volts["metric_count"] = 0; power_watts["metric_count"] = 0; speed_rpm["metric_count"] = 0; @@ -56,8 +56,8 @@ $2 ~ /na/ { # $3 is type field. $3 ~ /degrees C/ { - temperature_celcius[$1] = $2; - temperature_celcius["metric_count"]++; + temperature_celsius[$1] = $2; + temperature_celsius["metric_count"]++; } $3 ~ /Volts/ { @@ -81,7 +81,7 @@ $3 ~ /discrete/ { } END { - export(temperature_celcius, "temperature_celcius"); + export(temperature_celsius, "temperature_celsius"); export(volts, "volts"); export(power_watts, "power_watts"); export(speed_rpm, "speed_rpm");