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

Updated to remove negative diff in time calculation #666

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Updated to remove negative diff in time calculation #666

wants to merge 1 commit into from

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