Skip to content

Commit 90ff435

Browse files
committed
Remove formatting from http server raw values
1 parent ab9449e commit 90ff435

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OpenHardwareMonitor/Utilities/HttpServer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,9 @@ private Dictionary<string, object> GenerateJsonForNode(Node n, ref int nodeIndex
796796
jsonNode["Max"] = sensorNode.Max;
797797

798798
// Unformatted values for external systems to have consistent readings, e.g. Throughput will always be measured in B/s
799-
jsonNode["RawMin"] = string.Format(sensorNode.Format, sensorNode.Sensor.Min);
800-
jsonNode["RawValue"] = string.Format(sensorNode.Format, sensorNode.Sensor.Value);
801-
jsonNode["RawMax"] = string.Format(sensorNode.Format, sensorNode.Sensor.Max);
799+
jsonNode["RawMin"] = sensorNode.Sensor.Min;
800+
jsonNode["RawValue"] = sensorNode.Sensor.Value;
801+
jsonNode["RawMax"] = sensorNode.Sensor.Max;
802802

803803
jsonNode["ImageURL"] = "images/transparent.png";
804804
break;

0 commit comments

Comments
 (0)