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:
@@ -528,7 +528,7 @@ HeaderView::UpdateFileSizeView()
|
|||||||
{
|
{
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
strcpy(buffer, "of ");
|
strcpy(buffer, "of ");
|
||||||
FormatValue(buffer + 3, sizeof(buffer) - 3, fFileSize / fBlockSize);
|
FormatValue(buffer + 3, sizeof(buffer) - 3, (fFileSize + fBlockSize - 1) / fBlockSize);
|
||||||
fSizeView->SetText(buffer);
|
fSizeView->SetText(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user