Skip to content

Commit

Permalink
little fix to my else if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
GrecuAlexandru committed Jan 8, 2024
1 parent 7b5c689 commit 1c2a7d0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/data_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,6 @@ fn get_mem_binary_unit_and_denominator(
("MiB", MEBI_LIMIT_F64)
} else if bytes < TEBI_LIMIT {
("GiB", GIBI_LIMIT_F64)
} else if bytes < KIBI_LIMIT {
// Stick with bytes if under a kibibyte.
("B", 1.0)
} else if bytes < MEBI_LIMIT {
("KiB", KIBI_LIMIT_F64)
} else if bytes < GIBI_LIMIT {
("MiB", MEBI_LIMIT_F64)
} else if bytes < TEBI_LIMIT {
("GiB", GIBI_LIMIT_F64)
} else {
// Otherwise just use tebibytes, which is probably safe for most use cases.
("TiB", TEBI_LIMIT_F64)
Expand Down

0 comments on commit 1c2a7d0

Please sign in to comment.