mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 19:21:01 +00:00
add fmt formatter for `utils::pretty_printed_data_size` and `utils::pretty_printed_throughput`. this is a part of a series to migrating from `operator<<(ostream&, ..)` based formatting to fmtlib based formatting. the goal here is to enable fmtlib to print `utils::pretty_printed_data_size` and `utils::pretty_printed_throughput` without the help of `operator<<`. please note, despite that it's more popular to use the IEC prefixes when presenting the size of storage, i.e., MiB for 1024**2 bytes instead of MB for 1000**2 bytes, we are still using the SI binary prefixes as the default binary prefix, in order to preserve the existing behavior. the operator<< for these types are removed. the tests are updated accordingly. Refs #13245 Closes #14719 * github.com:scylladb/scylladb: utils: drop operator<< for pretty printers utils: add fmt formatter for pretty printers