From 4562dd08dcd594289a5ac6f6e7140d165d452224 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 9 Oct 2025 23:34:44 +0200 Subject: [PATCH] Update hardware.tsx --- AppImage/components/hardware.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index e85ec0f..8fe8839 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -76,7 +76,10 @@ export default function Hardware() { const fetchRealtimeData = async () => { try { - const response = await fetch(`http://localhost:8008/api/gpu/${fullSlot}/realtime`, { + const apiUrl = `http://${window.location.hostname}:8008/api/gpu/${fullSlot}/realtime` + console.log("[v0] Fetching GPU realtime data from:", apiUrl) + + const response = await fetch(apiUrl, { method: "GET", headers: { "Content-Type": "application/json", @@ -89,6 +92,7 @@ export default function Hardware() { } const data = await response.json() + console.log("[v0] GPU realtime data received:", data) setRealtimeGPUData(data) setDetailsLoading(false) } catch (error) { @@ -684,7 +688,7 @@ export default function Hardware() {