@@ -196,10 +199,10 @@
onStatusRetrievalError -= NullifyStatus;
}
- private static decimal RoundToWholeNumber(decimal? val)
+ private static double RoundToWholeNumber(double? val)
=> Math.Round(val ?? 0, 0);
- private static decimal RoundToOneDecimal(decimal? val)
+ private static double RoundToOneDecimal(double? val)
=> Math.Round(val ?? 0, 1);
private static string TemperatureCss()
@@ -259,7 +262,7 @@
}
}
- private static decimal GetCRate()
+ private static double GetCRate()
{
if (status?.BatteryChargeCRate > 0)
return Math.Round(status.BatteryChargeCRate, 2);
diff --git a/src/Server/Endpoints/GetStatus/Endpoint.cs b/src/Server/Endpoints/GetStatus/Endpoint.cs
index 8c77358..d395650 100644
--- a/src/Server/Endpoints/GetStatus/Endpoint.cs
+++ b/src/Server/Endpoints/GetStatus/Endpoint.cs
@@ -6,7 +6,7 @@ namespace InverterMon.Server.Endpoints.GetStatus;
public class Endpoint : EndpointWithoutRequest