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

Call time() only once during mainloop #1511

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

michaelortmann
Copy link
Member

@michaelortmann michaelortmann commented Nov 30, 2023

Found by: michaelortmann
Patch by: michaelortmann
Fixes:

One-line summary:
Call time() only once during mainloop() and core_secondly()

Additional description (if needed):
found with ltrace

Test cases demonstrating functionality (if applicable):
$ ltrace ./eggdrop -t BotA.conf
Before:

time(0)                                                                        = 1701307982
time(0)                                                                        = 1701307982

After:
time(0) = 1701308015

@vanosg vanosg added this to the v1.10.0 milestone Dec 30, 2023
@vanosg vanosg merged commit 0643f57 into eggheads:develop Dec 30, 2023
1 check passed
@michaelortmann michaelortmann deleted the mainloop.time branch January 3, 2024 22:29
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.

2 participants