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

When running ss_cpoller script, avgTime incorrect returns maxTime #2963

Closed
eschoeller opened this issue Sep 22, 2019 · 0 comments
Closed

When running ss_cpoller script, avgTime incorrect returns maxTime #2963

eschoeller opened this issue Sep 22, 2019 · 0 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@eschoeller
Copy link

Consider this code:

case 'avgTime':
                                $value = db_fetch_cell_prepared('SELECT max_time
                                        FROM poller
                                        WHERE id = ?',
                                        array($index));

                                break;

Should instead be:

case 'avgTime':
                                $value = db_fetch_cell_prepared('SELECT avg_time
                                        FROM poller
                                        WHERE id = ?',
                                        array($index));

                                break;

Sorry if I was better at submitting code updates, I would do it :)

@netniV netniV changed the title [1.2.6] ss_cpoller.php avg_time is not used. When running ss_cpoller script, avgTime incorrect returns maxTime Sep 22, 2019
@netniV netniV added bug Undesired behaviour resolved A fixed issue labels Sep 22, 2019
@netniV netniV added this to the v1.2.7 milestone Sep 22, 2019
@netniV netniV closed this as completed Sep 22, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants