From 629c6edab59e4502b8554c39dbf393011d67dbcb Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 10 Feb 2026 17:38:37 +0100 Subject: [PATCH] Add BTU/h and cooling tonnage from measured watts to DC stats The datacenter statistics page only showed BTU and cooling tonnage derived from computed watts. This adds the same metrics derived from measured watts, giving operators a more accurate picture of actual heat output and cooling requirements. Also clarifies the existing BTU label to BTU/h since watts convert to BTU per hour (1W = 3.412 BTU/h). Fixes #1098 --- dc_stats.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dc_stats.php b/dc_stats.php index 6d13960ce..5a0b4f029 100644 --- a/dc_stats.php +++ b/dc_stats.php @@ -245,8 +245,12 @@ function uselessie(){
',sprintf("%s",number_format($dc->MaxkW)),' kW
-
',__("BTU Computation from Computed Watts"),'
-
',sprintf("%s",number_format(($dcStats["ComputedWatts"]*3.412)/1000)),' kBTU
+
',__("BTU/h from Computed Watts"),'
+
',sprintf("%s",number_format(($dcStats["ComputedWatts"]*3.412)/1000)),' kBTU/h
+
+
+
',__("BTU/h from Measured Watts"),'
+
',sprintf("%s",number_format(($dcStats["MeasuredWatts"]*3.412)/1000)),' kBTU/h
',__("Data Center Size"),'
@@ -264,6 +268,10 @@ function uselessie(){
',__("Minimum Cooling Tonnage (Based on Computed Watts)"),'
',sprintf("%s ".__("Tons"), number_format($dcStats["ComputedWatts"]*3.412*1.15/12000)),'
+
+
',__("Minimum Cooling Tonnage (Based on Measured Watts)"),'
+
',sprintf("%s ".__("Tons"), number_format($dcStats["MeasuredWatts"]*3.412*1.15/12000)),'
+
',__("Average Temperature"),'
',sprintf("%s %s",number_format($dcStats["AvgTemp"]), __("°". $tempUnits)),'