-
Notifications
You must be signed in to change notification settings - Fork 608
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
Conversation
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.
Can you please have a look @jdillard ? |
And let me know which part of the version/portrevision should be bumped for a change like this. |
There was a problem hiding this 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.
Thanks, @phil-davis! I had to merge this one manually, in e4c9e5f, because of the |
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. |
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.