mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
workaround occasional logwatch hang
This commit is contained in:
parent
5ae1aeac95
commit
a3e446b7c6
@ -52,7 +52,9 @@ def do_hook(hook_name, hook_data, mods_env):
|
|||||||
"%Y-%m-%d %H:%M:%S",
|
"%Y-%m-%d %H:%M:%S",
|
||||||
time.localtime(since_mtime)
|
time.localtime(since_mtime)
|
||||||
)
|
)
|
||||||
since = 'since %s for that second' % local_str
|
# "for that second" can cause logwatch to hang and peg cpu at 100%
|
||||||
|
# since = 'since %s for that second' % local_str
|
||||||
|
since = 'since %s for that minute' % local_str
|
||||||
since_desc = 'since %s' % local_str
|
since_desc = 'since %s' % local_str
|
||||||
|
|
||||||
# run logwatch
|
# run logwatch
|
||||||
|
Loading…
Reference in New Issue
Block a user