kernel: tweak thresholds for data size->string conversion
This commit is contained in:
@@ -50,7 +50,7 @@ void data_size_to_string(size_t value, char *out, size_t outsz)
|
||||
size_t def_count = sizeof(k_magnitudes) / sizeof(struct magnitude);
|
||||
|
||||
for (size_t i = 0; i < def_count; i++) {
|
||||
if (value > k_magnitudes[i].threshold) {
|
||||
if (value >= k_magnitudes[i].threshold) {
|
||||
size_t big, small;
|
||||
convert(&big, &small, value, k_magnitudes[i].threshold);
|
||||
if (small) {
|
||||
|
||||
Reference in New Issue
Block a user