Ben Wiederhake
0944f56181
AK: Fix human_readable_size corner cases
...
In particular: consistent rounding and extreme values.
Before, rounding was something like 'away from 0.999...', which led to
surprising corner cases in which the value was rounded up.
Now, rounding is always 'down'.
This even works for 0xffffffff, and also for 0xffffffffffffffffULL on 64-bit.
2020-08-23 11:24:55 +02:00
..
2020-08-23 11:24:55 +02:00
2020-05-30 11:31:49 +02:00
2020-08-05 17:28:44 +02:00
2020-08-12 20:40:59 +02:00
2020-07-27 19:58:09 +02:00
2020-08-02 21:10:35 +02:00
2020-05-06 22:28:23 +02:00
2020-08-06 10:33:16 +02:00
2020-08-22 17:18:14 +02:00
2020-08-22 17:18:14 +02:00
2020-05-31 21:38:50 +02:00
2020-08-15 15:06:35 +02:00
2020-08-17 09:17:57 +02:00
2020-05-20 16:24:26 +02:00
2020-08-22 17:18:14 +02:00
2020-08-15 21:21:18 +02:00
2020-08-22 16:34:49 +02:00
2020-07-28 18:55:47 +02:00
2020-08-20 16:28:31 +02:00
2020-08-21 16:01:48 +02:00
2020-08-21 16:01:48 +02:00
2020-03-08 13:06:51 +01:00
2020-07-09 21:58:07 +02:00
2020-08-16 11:04:00 +02:00
2020-08-05 12:13:50 +02:00
2020-08-14 15:10:58 +02:00
2020-03-06 08:51:22 +01:00
2020-08-10 14:48:45 +02:00
2020-05-22 13:57:23 +02:00
2020-08-09 11:34:26 +02:00
2020-08-09 11:34:26 +02:00
2020-07-01 11:18:19 +02:00
2020-07-01 11:18:19 +02:00
2020-07-06 18:38:08 +02:00
2020-06-13 12:43:22 +02:00
2020-08-04 21:16:07 +02:00
2020-08-22 20:55:10 +02:00
2020-07-15 20:16:38 +02:00
2020-05-26 14:35:10 +02:00
2020-08-22 20:55:10 +02:00
2020-07-03 19:32:34 +02:00
2020-04-05 09:50:48 +02:00
2020-08-01 08:39:26 +02:00
2020-08-01 08:39:26 +02:00
2020-08-21 16:00:42 +02:00
2020-07-27 15:54:39 +02:00
2020-08-05 16:12:00 +02:00
2020-05-20 14:11:13 +02:00
2020-08-23 11:24:55 +02:00
2020-07-18 17:57:40 +02:00
2020-08-23 01:05:22 +02:00
2020-08-05 16:12:00 +02:00
2020-05-16 10:55:54 +02:00
2020-07-25 12:32:55 +02:00
2020-04-18 13:58:49 +02:00
2020-05-30 00:36:13 +02:00
2020-06-12 16:08:45 +02:00
2020-05-20 14:11:13 +02:00
2020-08-05 17:29:44 +02:00
2020-07-23 23:02:28 +02:00
2020-07-23 23:02:28 +02:00
2020-04-27 11:24:21 +02:00
2020-08-05 09:34:22 +02:00
2020-08-20 16:28:31 +02:00
2020-08-23 11:24:55 +02:00
2020-08-21 16:00:42 +02:00
2020-08-22 20:55:10 +02:00
2020-08-06 10:33:16 +02:00
2020-08-05 22:33:42 +02:00
2020-08-05 22:33:42 +02:00
2020-08-06 10:33:16 +02:00
2020-08-06 10:33:16 +02:00
2020-07-21 01:08:32 +02:00
2020-07-21 01:08:32 +02:00
2020-08-01 08:39:26 +02:00
2020-08-20 16:28:31 +02:00
2020-08-23 11:24:55 +02:00
2020-08-03 18:23:00 +02:00
2020-07-26 17:51:00 +02:00
2020-08-16 16:33:28 +02:00
2020-06-12 21:28:55 +02:00
2020-06-01 21:50:07 +02:00
2020-06-12 21:28:55 +02:00
2020-06-07 21:05:05 +02:00
2020-08-22 17:18:14 +02:00
2020-08-05 22:33:42 +02:00
2020-08-05 22:33:42 +02:00
2020-08-05 22:33:42 +02:00
2020-08-15 21:21:18 +02:00
2020-07-04 16:23:52 +02:00