MCPcopy Index your code
hub / github.com/git/git / strbuf_humanise

Function strbuf_humanise

strbuf.c:911–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909}
910
911static void strbuf_humanise(struct strbuf *buf, off_t bytes, unsigned flags)
912{
913 char *value;
914 const char *unit;
915
916 humanise_bytes(bytes, &value, &unit, flags);
917
918 /*
919 * TRANSLATORS: The first argument is the number string. The second
920 * argument is the unit string (i.e. "12.34 MiB/s").
921 */
922 strbuf_addf(buf, _("%s %s"), value, unit);
923 free(value);
924}
925
926void strbuf_humanise_bytes(struct strbuf *buf, off_t bytes)
927{

Callers 2

strbuf_humanise_bytesFunction · 0.85
strbuf_humanise_rateFunction · 0.85

Calls 2

humanise_bytesFunction · 0.85
strbuf_addfFunction · 0.85

Tested by

no test coverage detected