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

Fix for #155 #156

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

Conversation

infraweavers
Copy link
Contributor

@infraweavers infraweavers commented Mar 1, 2023

Previously the value of $stats{timet} would be initialised based on the last time that omd restart pnp_gearman_worker was executed, this means that the longer that OMD runs, each new instance of the worker that's created starts off with a "broken" snapshot of their stats. By initialising it to 0 and skipping that save, we throw away the first-time stats (which are empty anyway) and then save from then onward.

NB I think the format of this patch is correct, however I don't have a build environment for the whole of OMD built so I've had to guess it a little.

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.

1 participant