Skip to content

Commit

Permalink
Merge pull request #316 from dinosause/main
Browse files Browse the repository at this point in the history
Add new metric prefixes
  • Loading branch information
printfn authored Oct 17, 2024
2 parents eab078d + 93aa1eb commit 0067452
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 0067452

Please sign in to comment.