X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=strbuf.h;h=f62278a0be59be4c6cff17f0a0adcc6361e93e82;hb=8dfb04ae964868dda758997e5e7da29edff6164b;hp=c8d98dfb95b8d81b316e887fa031dab0b2165784;hpb=352253adf04cb474468a2bc31adde96cbf737f8c;p=thirdparty%2Fgit.git diff --git a/strbuf.h b/strbuf.h index c8d98dfb95..f62278a0be 100644 --- a/strbuf.h +++ b/strbuf.h @@ -372,6 +372,12 @@ void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf *src); */ void strbuf_humanise_bytes(struct strbuf *buf, off_t bytes); +/** + * Append the given byte rate as a human-readable string (i.e. 12.23 KiB/s, + * 3.50 MiB/s). + */ +void strbuf_humanise_rate(struct strbuf *buf, off_t bytes); + /** * Add a formatted string to the buffer. */