Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Conversation

@RogerSelwyn
Copy link

Checklist:

  • [x ] My code follows the code style of this project.
  • My change requires a change to the documentation.

Types of changes

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description of Changes

Use of 'def diff = (int) (long)...' causes a negative value when difference is months (23 March to 06 May). No idea why. Changing to 'int diff = ...' removes this problem

Reason for Change

Nest mode change is constantly skipped due to incorrect result from date diff.

How Has This Been Tested?

Tested via graph by adding extra logging and identifying the change of nest mode was constantly being skipped because of a negative value be generated by the difference calculation. The simple change proposed allows it to correctly return the difference.

Screenshots (if appropriate):

Use of 'def diff = (int) (long)...' causes a negative value when difference is months (23 March to 06 May). No idea why. Changing to 'int diff = ...' removes this problem
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant