Correct block size arithmetic.

This commit is contained in:
2016-08-01 17:57:55 +01:00
parent 2c3755145e
commit b60f650733
2 changed files with 6 additions and 2 deletions

View File

@@ -143,12 +143,12 @@ namespace DiscImageChef.Filesystems.UCSDPascal
if(string.Compare(path, "$", StringComparison.InvariantCulture) == 0)
{
stat.Blocks = catalogBlocks.Length / stat.BlockSize;
stat.Blocks = (catalogBlocks.Length / stat.BlockSize) + (catalogBlocks.Length % stat.BlockSize);
stat.Length = catalogBlocks.Length;
}
else
{
stat.Blocks = bootBlocks.Length / stat.BlockSize;
stat.Blocks = (bootBlocks.Length / stat.BlockSize) + (catalogBlocks.Length % stat.BlockSize);
stat.Length = bootBlocks.Length;
}