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

Add a TZ env setting for systemd. #1643

Merged
merged 3 commits into from Sep 29, 2016

Conversation

connortechnology
Copy link
Member

Unless there is a TZ env set, things like gettimeofday will stat /etc/localtime on every call. We make A LOT of those calls. So this actually makes a noticeable cpu and io load reduction.

@knight-of-ni
Copy link
Member

Yeah, this looks safe. /etc/localtime appears to be part of systemd itself, and does not appear to be specific to just one distro.

@knight-of-ni knight-of-ni merged commit b064383 into ZoneMinder:master Sep 29, 2016
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.

None yet

2 participants