From 6800e7f2311358e78828660c33ead6c1aeb1a140 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 29 Aug 2021 02:32:12 -0400 Subject: [PATCH] Remove microseconds from module meter. --- src/app/ModuleWidget.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/app/ModuleWidget.cpp b/src/app/ModuleWidget.cpp index c0480ddc..0bc6186b 100644 --- a/src/app/ModuleWidget.cpp +++ b/src/app/ModuleWidget.cpp @@ -264,15 +264,8 @@ void ModuleWidget::draw(const DrawArgs& args) { // Text float percent = meterBuffer[meterIndex] * sampleRate * 100.f; - float microseconds = meterBuffer[meterIndex] * 1e6f; - std::string meterText; - if (box.size.x >= RACK_GRID_WIDTH * 9) - meterText = string::f("%.2f μs/sample %.1f%%", microseconds, percent); - else if (box.size.x >= RACK_GRID_WIDTH * 6) - meterText = string::f("%.2f μs %.1f%%", microseconds, percent); - else - meterText = string::f("%.1f%%", percent); - + // float microseconds = meterBuffer[meterIndex] * 1e6f; + std::string meterText = string::f("%.1f%%", percent); float x = box.size.x - bndLabelWidth(args.vg, -1, meterText.c_str()); bndMenuLabel(args.vg, x, plotHeight, INFINITY, BND_WIDGET_HEIGHT, -1, meterText.c_str()); }