diff --git a/AppImage/components/storage-overview.tsx b/AppImage/components/storage-overview.tsx index f2eb75a..22502d2 100644 --- a/AppImage/components/storage-overview.tsx +++ b/AppImage/components/storage-overview.tsx @@ -9,7 +9,8 @@ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } f interface DiskInfo { name: string - size?: string + size?: number // Changed from string to number (KB) for formatMemory() + size_formatted?: string // Added formatted size string for display temperature: number health: string power_on_hours?: number @@ -25,8 +26,8 @@ interface DiskInfo { reallocated_sectors?: number pending_sectors?: number crc_errors?: number - rotation_rate?: number // Added rotation rate (RPM) - power_cycles?: number // Added power cycle count + rotation_rate?: number + power_cycles?: number } interface ZFSPool { @@ -458,10 +459,10 @@ export function StorageOverview() {
Size
-{disk.size}
+{disk.size_formatted}
Capacity
-{selectedDisk.size}
+{selectedDisk.size_formatted}
Health Status