mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Corrected cluster size calculation.
This commit is contained in:
@@ -234,7 +234,7 @@ namespace DiscImageChef.Filesystems
|
|||||||
xmlFSType.Files = rootDirectoryKeyBlock.header.file_count;
|
xmlFSType.Files = rootDirectoryKeyBlock.header.file_count;
|
||||||
xmlFSType.FilesSpecified = true;
|
xmlFSType.FilesSpecified = true;
|
||||||
xmlFSType.Clusters = rootDirectoryKeyBlock.header.total_blocks;
|
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";
|
xmlFSType.Type = "ProDOS";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user