Skip to content

Commit

Permalink
Roudn fractions generally, which is the more common expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Nov 29, 2024
1 parent 071ffd5 commit 9e637f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/org/openpsa/expenses/hour/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function modify_hours_by_time_slot()
$time_slot = 1;
}
}
$this->hours = max(1, round($this->hours / $time_slot)) * $time_slot;
$this->hours = ceil($this->hours / $time_slot) * $time_slot;
}
}

Expand Down

0 comments on commit 9e637f3

Please sign in to comment.