diff --git a/tools/cabana/binaryview.cc b/tools/cabana/binaryview.cc index 19ae7547fe7f4b..a915baad95db20 100644 --- a/tools/cabana/binaryview.cc +++ b/tools/cabana/binaryview.cc @@ -320,7 +320,7 @@ void BinaryViewModel::updateState() { const double min_alpha_with_signal = 25.0; // Base alpha for small flip counts const double min_alpha_no_signal = 10.0; // Base alpha for small flip counts for no signal bits const double log_factor = 1.0 + 0.2; // Factor for logarithmic scaling - const double log_scaler = max_alpha / log2(log_factor * max_bit_flip_count); + const double log_scaler = max_alpha / log2(1.0 + log_factor * max_bit_flip_count); for (size_t i = 0; i < binary.size(); ++i) { for (int j = 0; j < 8; ++j) {