Now correctly displays the block size of the file (didn't round up).

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6708 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-24 04:29:23 +00:00
parent cf54799833
commit a0858e6e27

View File

@ -528,7 +528,7 @@ HeaderView::UpdateFileSizeView()
{
char buffer[64];
strcpy(buffer, "of ");
FormatValue(buffer + 3, sizeof(buffer) - 3, fFileSize / fBlockSize);
FormatValue(buffer + 3, sizeof(buffer) - 3, (fFileSize + fBlockSize - 1) / fBlockSize);
fSizeView->SetText(buffer);
}