MCPcopy Create free account
hub / github.com/ccache/ccache / format_human_readable_diff

Function format_human_readable_diff

src/ccache/util/string.cpp:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207std::string
208format_human_readable_diff(int64_t diff, SizeUnitPrefixType prefix_type)
209{
210 const char* sign = diff == 0 ? "" : (diff > 0 ? "+" : "-");
211 return FMT(
212 "{}{}", sign, format_human_readable_size(std::abs(diff), prefix_type));
213}
214
215std::string
216format_human_readable_size(uint64_t size, SizeUnitPrefixType prefix_type)

Callers 2

trim_dirFunction · 0.85

Calls 1

Tested by

no test coverage detected