From ca06012678b63e10745a9343c2fb5e8d60e1af36 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 31 Mar 2020 20:47:43 -0500 Subject: [PATCH] modified moon calc library --- app/Library/Moons/MoonCalc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Library/Moons/MoonCalc.php b/app/Library/Moons/MoonCalc.php index 94b053f70..940decc5a 100644 --- a/app/Library/Moons/MoonCalc.php +++ b/app/Library/Moons/MoonCalc.php @@ -507,11 +507,11 @@ class MoonCalc { $totalPerc = $firstPerc + $secondPerc + $thirdPerc + $fourthPerc; //If it is less than 0.95, then we need to convert to a format where 0.80 is equal to 1.00 - if($totalPerc < 0.95) { - $firstPerc = $firstPerc / 0.80; - $secondPerc = $secondPerc / 0.80; - $thirdPerc = $thirdPerc / 0.80; - $fourthPerc = $fourthPerc / 0.80; + if($totalPerc < 1.00) { + $firstPerc = $firstPerc / $totalPerc; + $secondPerc = $secondPerc / $totalPerc; + $thirdPerc = $thirdPerc / $totalPerc; + $fourthPerc = $fourthPerc / $totalPerc; } }