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:
parent
cf54799833
commit
a0858e6e27
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user