aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--check-health3
1 files changed, 3 insertions, 0 deletions
diff --git a/check-health b/check-health
index 7d52204..d1b45d5 100644
--- a/check-health
+++ b/check-health
@@ -19,6 +19,9 @@
:local FormatVoltage do={
:local Voltage [ :tonum $1 ];
+ :if ($Voltage < 10) do={
+ :return ("0." . $Voltage . "V");
+ }
:return (($Voltage / 10) . "." . ($Voltage % ($Voltage / 10 * 10)) . "V");
}