From a79bedee672d7d558e21e2cadf344d07c8656525 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Mon, 30 Dec 2024 17:55:31 +0000 Subject: [PATCH] gui: handle Giga prefix in units (for GHz) Signed-off-by: Matt Liberty --- src/gui/src/dbDescriptors.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/src/dbDescriptors.cpp b/src/gui/src/dbDescriptors.cpp index 75aaee05842..50a4fe48f4e 100644 --- a/src/gui/src/dbDescriptors.cpp +++ b/src/gui/src/dbDescriptors.cpp @@ -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;