Skip to content

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