-
Notifications
You must be signed in to change notification settings - Fork 69
Potential Division by Zero in ETA Calculation #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@Aditya8369 is attempting to deploy a commit to the Ayan manna's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
|
@ayanmanna123 check |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
fix all error |
|
@ayanmanna123 done |
|
Due to some reason, you did not get any point of this pr if now i marge this pr, I will merge it after solving the issue |
|
@ayanmanna123 are the error not fixed? if not then what errors tell me |


📌 Description
The potential division by zero bug in the ETA calculation has been successfully fixed. The change modifies the calculateBusStatistics function to use currentSpeed if it's greater than 0, otherwise fall back to averageSpeed if available, preventing division by zero when the bus is temporarily stopped but has historical speed data.
Fixes: #275
🔧 Type of Change
Please mark the relevant option(s):
🧪 How Has This Been Tested?
Describe the tests you ran to verify your changes.
✅ Checklist
Please confirm the following: