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

Function throughput_string

progress.c:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175static void throughput_string(struct strbuf *buf, uint64_t total,
176 unsigned int rate)
177{
178 strbuf_reset(buf);
179 strbuf_addstr(buf, ", ");
180 strbuf_humanise_bytes(buf, total);
181 strbuf_addstr(buf, " | ");
182 strbuf_humanise_rate(buf, rate * 1024);
183}
184
185static uint64_t progress_getnanotime(struct progress *progress)
186{

Callers 2

display_throughputFunction · 0.85
force_last_updateFunction · 0.85

Calls 3

strbuf_addstrFunction · 0.85
strbuf_humanise_bytesFunction · 0.85
strbuf_humanise_rateFunction · 0.85

Tested by

no test coverage detected