mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Correct block size arithmetic.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2016-08-01 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* File.cs: Correct block size arithmetic.
|
||||
|
||||
2016-08-01 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* Consts.cs:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user