gauges, charts

This commit is contained in:
Alex Holliday committed 2026-01-28 23:26:00 +00:00
1 parent dcf5a77923
commit cb392eaaba
14 files changed
+596 -86

No files matched your search

-1
View File
@@ -13,7 +13,6 @@ export const getCores = (cores: number | undefined) => {
};
export const getAvgTemp = (temps: number[]): string => {
console.log(temps);
if (!temps || temps.length === 0) return "N/A";
const avgTemp = temps.reduce((a, b) => a + b, 0) / temps.length;
return `${avgTemp?.toFixed(2)} °C`;