From 9e9b9d9a2e7447936d4aa5af420893c166d8ec24 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 11 Jul 2017 01:32:23 +0100 Subject: [PATCH] Corrected cluster size calculation. --- DiscImageChef.Filesystems/ProDOS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DiscImageChef.Filesystems/ProDOS.cs b/DiscImageChef.Filesystems/ProDOS.cs index d0e4d9189..c49d79cc7 100644 --- a/DiscImageChef.Filesystems/ProDOS.cs +++ b/DiscImageChef.Filesystems/ProDOS.cs @@ -234,7 +234,7 @@ namespace DiscImageChef.Filesystems xmlFSType.Files = rootDirectoryKeyBlock.header.file_count; xmlFSType.FilesSpecified = true; xmlFSType.Clusters = rootDirectoryKeyBlock.header.total_blocks; - xmlFSType.ClusterSize = (int)((partitionEnd - partitionStart + 1) / (ulong)xmlFSType.Clusters); + xmlFSType.ClusterSize = (int)(((partitionEnd - partitionStart) + 1) * imagePlugin.ImageInfo.sectorSize / (ulong)xmlFSType.Clusters); xmlFSType.Type = "ProDOS"; return;