Print Page - Cannot adjust fare: division by zero/Planes with more than 24 hours error
Airline Mogul Forum
Airline Mogul => Bugs => Topic started by: gisa on June 20, 2009, 10:44:46 am
Title: Cannot adjust fare: division by zero/Planes with more than 24 hours error
Post by: gisa on June 20, 2009, 10:44:46 am
To Whom It May Concern,
I've been getting two errors lately which I wanted to report to you. The first is the division by zero error:
ID - aircraft 1937 flying from Jackson Atlanta International to Theodore Francis Green State Problem - Cannot adjust hours to adjust loadfactor. Regardless of what I put in, it shows zero. Description Airline ID - Gisa Airlines (21702) - PW 593
The second error I have is that some planes are either showing negative hours (i.e. -4) or are capable of flying more than 24 hours (same info as above). Plane ID 1938 or 2456 (same room) will demonstrate what I mean.
From what I can see, this is a problem for a few others. Hopefully you guys can fix it for everyone when you get the chance.
Thanks!
8)
Gisa ^^
Title: Re: Cannot adjust fare: division by zero/Planes with more than 24 hours error
Post by: StephenM on June 20, 2009, 05:14:59 pm
The first problem was fixed by closing and re-opening a route. The hours were reset this way, so changing the price/frequency then didn't show the problem.
The second problem can be solved in the same way, just close and re-open a route for the aircraft and it should be back to normal. Provided you didn't schedule routes onto a plane that gave more than 24 hours block time, all routes should be able to be re-opened on the same plane.
Title: Re: Cannot adjust fare: division by zero/Planes with more than 24 hours error
Post by: gisa on June 20, 2009, 06:01:59 pm
Thanks for the timely information Stephen.
Any clue as to what is causing that?
8)
Gisa ^^
Title: Re: Cannot adjust fare: division by zero/Planes with more than 24 hours error
Post by: StephenM on June 20, 2009, 07:29:43 pm
We were implementing a fix for a previously mentioned bug, that sometimes let aircraft go beyond 24 hours. In implementing the fix a mistake was made, and in the time taken to find and rectify it, a number of these errors occurred. Its always the simple things that go wrong!
Title: Re: Cannot adjust fare: division by zero/Planes with more than 24 hours error
Post by: gisa on June 21, 2009, 05:53:03 am
No worries. I recently read somewhere that everytime a new bit of code is introduced, there is a high probability of a bug showing up elsewhere. Recreating the route isn't too hard so it sounds like an easy fix.