gauges, charts
This commit is contained in:
1 parent
dcf5a77923
commit
cb392eaaba
14 files changed
+596
-86
No files matched your search
@@ -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`;
|
||||
|
||||
Reference in new issue
Block a user