Skip to content

Commit

Permalink
Merge pull request #6448 from The-OpenROAD-Project-staging/gui-ghz
Browse files Browse the repository at this point in the history
gui: handle Giga prefix in units (for GHz)
  • Loading branch information
maliberty authored Dec 30, 2024
2 parents 8a70166 + a79bede commit 74871cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/src/dbDescriptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ std::string Descriptor::convertUnits(const double value,
} else if (log_units <= 6) {
unit_scale = 1e-6;
unit = "M";
} else if (log_units <= 9) {
unit_scale = 1e-9;
unit = "G";
}
if (area) {
unit_scale *= unit_scale;
Expand Down

0 comments on commit 74871cc

Please sign in to comment.