Skip to content
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

Redmine #7548 Add absolute offset to NTP stats #355

Closed
wants to merge 7 commits into from
Closed

Redmine #7548 Add absolute offset to NTP stats #355

wants to merge 7 commits into from

Conversation

phil-davis
Copy link
Contributor

Plot and list the absolute value of the NTP time offset, as well as the existing plus/minus value.
See Redmine https://redmine.pfsense.org/issues/7548
Forum https://forum.pfsense.org/index.php?topic=130468.0
for details.

In order to do add this, it was easier to also refactor the whole code to get rid of the various counters and huge block of duplicated code for left and right. Those refactorings are in the various commits here, before the last one that implements the actual feature.

Removes all the unnecessary variables that were trying to calculate the index into the output array, when in fact it is just an incrementing index.
Actually it all works fine by just constructing each entry then appending to the output $obj array with $obj[]
There is no need to have a $obj array index as a separate variable.
Plot and list the absolute value of the NTP time offset, as well as the existing plus/minus value.
See Redmine https://redmine.pfsense.org/issues/7548
Forum https://forum.pfsense.org/index.php?topic=130468.0
for details.

In order to do add this, it was easier to also refactor the whole code to get rid of the various counters and huge block of duplicated code for left and right. Those refactorings are in the commits before this one.
@rbgarga
Copy link
Member

rbgarga commented May 15, 2017

Can you please have a look @jdillard ?

@phil-davis
Copy link
Contributor Author

And let me know which part of the version/portrevision should be bumped for a change like this.

Copy link
Contributor

@jdillard jdillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for being so thorough Phil! Everything looks good to me.

@jdillard
Copy link
Contributor

Thanks, @phil-davis! I had to merge this one manually, in e4c9e5f, because of the unknown repository issue. I also revved the version to 1.7.0, since it added a feature and was refactored (much appreciated).

@jdillard jdillard closed this Jul 17, 2017
@phil-davis
Copy link
Contributor Author

Yeh, I forgot all about this it has been there so long. Last week I cleaned up the large number of repo forks that I had from various projects - removing the ones that I do not use very often. Glad that GitHub does not delete the code waiting in PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants