Corrected XML cluster count for metadata XML.

This commit is contained in:
2017-09-25 22:21:18 +01:00
parent 37ecfc2679
commit bde4c451fa

View File

@@ -921,7 +921,7 @@ namespace DiscImageChef.Filesystems.CPM
xmlFSType.Bootable |= (workingDefinition.sofs > 0 || workingDefinition.ofs > 0);
xmlFSType.ClusterSize = 128 << dpb.bsh;
if(dpb.dsm > 0)
xmlFSType.Clusters = ((dpb.dsm + 1) * 128) / (128 << dpb.bsh);
xmlFSType.Clusters = dpb.dsm;
else
xmlFSType.Clusters = (long)(partition.End - partition.Start);
if(labelCreationDate != null)