Skip to content

Commit 6fd4720

Browse files
committed
PhysicalDisk (Haiku): fix drive size calcuation
1 parent 966b845 commit 6fd4720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/physicaldisk/physicaldisk_haiku.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static const char* detectDisk(FFstrbuf* path, const char* diskType, FFlist* resu
3434
device->type = FF_PHYSICALDISK_TYPE_NONE;
3535
device->type |= (geometry.read_only ? FF_PHYSICALDISK_TYPE_READONLY : FF_PHYSICALDISK_TYPE_READWRITE) |
3636
(geometry.removable ? FF_PHYSICALDISK_TYPE_REMOVABLE : FF_PHYSICALDISK_TYPE_FIXED);
37-
device->size = (uint64_t) geometry.cylinder_count * geometry.sectors_per_track * geometry.bytes_per_sector;
37+
device->size = (uint64_t) geometry.cylinder_count *geometry.heads * geometry.sectors_per_track * geometry.bytes_per_sector;
3838

3939
return NULL;
4040
}

0 commit comments

Comments
 (0)