James Cole
2023-11-07 20:06:56 +01:00
parent 867d932e59
commit 80b8e676d0
5 changed files with 22 additions and 12 deletions

View File

@@ -378,11 +378,11 @@ class Navigation
// then correct for quarterly or half-year
if ('quarterly' === $period) {
Log::debug(sprintf('Q: Corrected %f to %f', $floatDiff, $floatDiff / 3));
$floatDiff = $floatDiff / 3;
$floatDiff /= 3;
}
if ('half-year' === $period) {
Log::debug(sprintf('H: Corrected %f to %f', $floatDiff, $floatDiff / 6));
$floatDiff = $floatDiff / 6;
$floatDiff /= 6;
}
// then do ceil()