Opened 6 years ago
Last modified 6 years ago
#14917 new bug
Emptying the trash shows progress as a size instead of a count
Reported by: | korli | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/libtracker.so | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
BStatusView::_FullSpeedString() is used for item counts, this means it shows 2KB for 2000 files to delete.
BString BStatusView::_FullSpeedString() { BString buffer; if (fBytesPerSecond != 0.0) { char sizeBuffer[128]; buffer.SetTo(B_TRANSLATE( "%SizeProcessed of %TotalSize, %BytesPerSecond/s")); buffer.ReplaceFirst("%SizeProcessed", string_for_size((double)fSizeProcessed, sizeBuffer, sizeof(sizeBuffer))); buffer.ReplaceFirst("%TotalSize", string_for_size((double)fTotalSize, sizeBuffer, sizeof(sizeBuffer))); buffer.ReplaceFirst("%BytesPerSecond", string_for_size(fBytesPerSecond, sizeBuffer, sizeof(sizeBuffer))); } return buffer; }
Attachments (1)
Change History (4)
by , 6 years ago
Attachment: | screenshot51.png added |
---|
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Seems to be introduced in https://github.com/haiku/haiku/commit/4e1bbd4d0da971c31365a06e9aba7f65735827c2
comment:3 by , 6 years ago
Well, at least in all other operations, it seems to have the correct "bytes" values. So, I wonder why Trash is different?
Note:
See TracTickets
for help on using tickets.
status window