Skip to content

Commit

Permalink
adding braces improving code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
rustedusted committed Oct 8, 2024
1 parent b914fdb commit 791d28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
double value = this->values[i];
if (isPositive(value) && this->total > 0.0) {
value = MINIMUM(value, this->total);
actualBarWidth = ((value / this->total) * w);
actualBarWidth = (value / this->total) * w;
blockSizes[i] = ceil(actualBarWidth);
} else {
blockSizes[i] = 0;
Expand Down

0 comments on commit 791d28e

Please sign in to comment.