update 1.2.2.2 beta

This commit is contained in:
MacRimi
2026-06-24 18:23:16 +02:00
parent b7380fd582
commit 61b9fd12bb
4 changed files with 332 additions and 332 deletions
@@ -64,8 +64,11 @@ export function DiskTemperatureCard({
const fetchHistory = async () => {
setLoading(true)
try {
// 24-h timeframe gives a more useful "is this drive trending
// up over a day" view; the 1-h window was too short to spot
// anything that mattered.
const result = await fetchApi<{ data: TempPoint[] }>(
`/api/disk/${encodeURIComponent(diskName)}/temperature/history?timeframe=hour`,
`/api/disk/${encodeURIComponent(diskName)}/temperature/history?timeframe=day`,
)
if (cancelled.current) return
setData(result?.data || [])