From 1a6bd0c44f3202ee261bce9eee72d7f5f794e78b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:49:50 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/hpp-manipulation-graph.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hpp-manipulation-graph.cc b/src/hpp-manipulation-graph.cc index 3e4cb92..a6df437 100644 --- a/src/hpp-manipulation-graph.cc +++ b/src/hpp-manipulation-graph.cc @@ -276,8 +276,8 @@ void HppManipulationGraphWidget::updateStatistics() { ni.freq = manip_->graph()->getFrequencyOfNodeInRoadmap( ni.id, ni.freqPerCC.out()); float sr = (ni.configStat.nbObs > 0) ? (float)ni.configStat.success / - (float)ni.configStat.nbObs - : 0.f / 0.f; + (float)ni.configStat.nbObs + : 0.f / 0.f; QString colorcode = (ni.configStat.nbObs > 0) ? QColor(255, (int)(sr * 255), (int)(sr * 255)).name() @@ -296,8 +296,8 @@ void HppManipulationGraphWidget::updateStatistics() { ei.pathStat); manip_->graph()->getEdgeStat(ei.id, ei.errors.out(), ei.freqs.out()); float sr = (ei.configStat.nbObs > 0) ? (float)ei.configStat.success / - (float)ei.configStat.nbObs - : 0.f / 0.f; + (float)ei.configStat.nbObs + : 0.f / 0.f; QString colorcode = (ei.configStat.nbObs > 0) ? QColor(255 - (int)(sr * 255), 0, 0).name() : "";