Update appImage

This commit is contained in:
MacRimi
2025-11-03 23:17:27 +01:00
parent 128edc08e2
commit 31d7f7e3e9
3 changed files with 7 additions and 31 deletions

View File

@@ -1788,15 +1788,13 @@ export default function Hardware() {
{selectedDisk.rotation_rate !== undefined && selectedDisk.rotation_rate !== null && (
<div className="flex justify-between border-b border-border/50 pb-2">
<span className="text-sm font-medium text-muted-foreground">Rotation Rate</span>
<div className="text-sm">
{typeof selectedDisk.rotation_rate === "number" && selectedDisk.rotation_rate === -1
? "N/A"
: typeof selectedDisk.rotation_rate === "number" && selectedDisk.rotation_rate > 0
? `${selectedDisk.rotation_rate} rpm`
: typeof selectedDisk.rotation_rate === "string"
? selectedDisk.rotation_rate
: "Solid State Device"}
</div>
<span className="text-sm">
{typeof selectedDisk.rotation_rate === "number" && selectedDisk.rotation_rate > 0
? `${selectedDisk.rotation_rate} rpm`
: typeof selectedDisk.rotation_rate === "string"
? selectedDisk.rotation_rate
: "Solid State Device"}
</span>
</div>
)}

View File

@@ -211,12 +211,6 @@ export function StorageOverview() {
if (diskName.startsWith("nvme")) {
return "NVMe"
}
// rotation_rate = -1 means HDD but RPM is unknown (detected via kernel rotational flag)
// rotation_rate = 0 or undefined means SSD
// rotation_rate > 0 means HDD with known RPM
if (rotationRate === -1) {
return "HDD"
}
if (!rotationRate || rotationRate === 0) {
return "SSD"
}