Skip to content

Use *iB for power-of-2 bytes units consistently #7079

@MichaelChirico

Description

@MichaelChirico

Split off from #7074. I believe @aitap did a related fix recently (not easy to search for it). But we should try and be consistent about: 1024 bytes: kibibyte=KiB, not KB (which is 1000 bytes), and so on.

Examples found quickly:

DTPRINT(_("%8.3fs (%3.0f%%) Memory map %.3fGB file\n"), tMap-t0, 100.0*(tMap-t0)/tTot, 1.0*fileSize/(1024*1024*1024));

STOP(_("Unable to allocate %zu MB * %d thread buffers; '%d: %s'. Please read ?fwrite for nThread, buffMB and verbose options."), // # nocov

More to search through (lots of false positives since GH search is not case-sensitive, but a local grep will do better)

https://github.com/search?q=repo%3ARdatatable%2Fdata.table+%2F%5Bkmg%5Db+%2F+-path%3A%2F%5C.po%2F&type=code

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeissues whose solution would require breaking existing behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions