Skip to content

Commit

Permalink
Add new metric prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosause authored Oct 16, 2024
1 parent eab078d commit 93aa1eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/units/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const BITS_AND_BYTES: &[UnitTuple] = &[
];

const STANDARD_PREFIXES: &[UnitTuple] = &[
("quetta", "", "lp@1e30", ""),
("quecca", "", "lp@1e30", ""),
("ronna", "", "lp@1e27", ""),
("yotta", "", "lp@1e24", ""),
Expand Down Expand Up @@ -780,6 +781,8 @@ const SHORT_PREFIXES: &[(&str, &str)] = &[
("Ei", "sp@exbi"),
("Zi", "sp@zebi"),
("Yi", "sp@yobi"),
("Q", "sp@quetta"),
("R", "sp@ronna"),
("Y", "sp@yotta"),
("Z", "sp@zetta"),
("E", "sp@exa"),
Expand All @@ -802,6 +805,8 @@ const SHORT_PREFIXES: &[(&str, &str)] = &[
("a", "sp@atto"),
("z", "sp@zepto"),
("y", "sp@yocto"),
("r", "sp@ronto"),
("q", "sp@quecto"),
];

#[allow(clippy::too_many_lines)]
Expand Down

0 comments on commit 93aa1eb

Please sign in to comment.