fix static analysis error (CID 373575)

Signed-off-by: Carlo Galiotto <carlo@srs.io>
This commit is contained in:
Carlo Galiotto 2021-10-12 13:01:27 +02:00 committed by Xavier Arteaga
parent a9904c2b64
commit 781ae4abfb
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void metrics_stdout::set_metrics_helper(uint32_t num_ue
} else { } else {
fmt::print(" {:>5.5}", "n/a"); fmt::print(" {:>5.5}", "n/a");
} }
int phr = (is_nr) ? mac.ues[i].phr : mac.ues[i].phr; int phr = mac.ues[i].phr;
fmt::print(" {:>3}", int(phr)); fmt::print(" {:>3}", int(phr));
if (not isnan(phr)) { if (not isnan(phr)) {
fmt::print(" {:>2}", int(phr)); fmt::print(" {:>2}", int(phr));