Files
scylladb/utils
Botond Dénes 0994e8b5e2 utils: add to_hr_size()
This utility function converts a potentially large number to a compact
representation, composed of at most 4 digits and a letter appropriate to
the power of two the number has to multiplied with to arrive to the
original number (with some loss of precision).

The different powers of two are the conventional 2 ** (N * 10) variants:
* N=0: (B)ytes
* N=1: (K)bytes
* N=2: (M)bytes
* N=3: (G)bytes
* N=4: (T)bytes

Examples:
* 87665 will be converted to 87K
* 1024 will be converted to 1K
2020-10-13 12:32:14 +03:00
..
2020-01-30 14:10:18 +02:00
2020-03-23 11:59:30 +02:00
2020-08-03 15:55:16 +03:00
2018-12-03 14:36:08 +01:00
2018-11-21 00:01:44 +02:00
2020-10-13 12:32:14 +03:00
2020-10-13 12:32:14 +03:00
2020-08-04 17:54:45 +03:00
2020-09-08 15:59:25 +03:00
2020-09-08 15:59:25 +03:00
2020-05-31 12:58:59 +03:00
2020-03-23 11:59:30 +02:00
2020-08-19 17:18:57 +03:00
2020-08-11 19:37:47 +08:00
2019-02-20 08:03:46 -08:00
2018-11-21 00:01:44 +02:00
2020-01-26 18:54:36 +02:00