Skip to content

Commit

Permalink
don't rescale percent axis above 100
Browse files Browse the repository at this point in the history
  • Loading branch information
marazmista committed Aug 9, 2020
1 parent f254ab2 commit eb68ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radeon-profile/components/rpplot.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class RPPlot : public QChartView
axis->setMax(value + 5);
return;
case ValueUnit::PERCENT:
axis->setMax(value + 10);
axis->setMax((value + 10 > 100) ? 100 : value + 10);
return;
case ValueUnit::MEGABYTE:
axis->setMax(value + 50);
Expand Down

0 comments on commit eb68ce4

Please sign in to comment.