| 173 | } |
| 174 | |
| 175 | static 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 | |
| 185 | static uint64_t progress_getnanotime(struct progress *progress) |
| 186 | { |
no test coverage detected