From cb56b5e5e2f6ceb3347454308f3c4e2e377cb5a4 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 16 Dec 2023 20:39:28 +0100 Subject: [PATCH] Main page: round average temperature --- emhttp/plugins/dynamix/nchan/device_list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/nchan/device_list b/emhttp/plugins/dynamix/nchan/device_list index d4dc809dc..4a85eef7c 100755 --- a/emhttp/plugins/dynamix/nchan/device_list +++ b/emhttp/plugins/dynamix/nchan/device_list @@ -304,7 +304,7 @@ function show_totals($text,$array,$name) { $echo[] = ""; $echo[] = "$help1$help2"; $echo[] = "$text"; - $echo[] = "".my_power($sum['power']).($sum['count']>0 ? my_temp(round($sum['temp']/$sum['count'],1)) : '*').""; + $echo[] = "".my_power($sum['power']).($sum['count']>0 ? my_temp(round($sum['temp']/$sum['count'])) : '*').""; $echo[] = "".my_diskio($sum['ioReads'])."".my_number($sum['numReads']).""; $echo[] = "".my_diskio($sum['ioWrites'])."".my_number($sum['numWrites']).""; $echo[] = "".my_number($sum['numErrors'])."";