Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and florent-lamiraux committed Sep 9, 2024
1 parent c03b9c4 commit 1a6bd0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hpp-manipulation-graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
: "";
Expand Down

0 comments on commit 1a6bd0c

Please sign in to comment.