diff --git a/setup/mods.available/hooks/logwatch-hooks.py b/setup/mods.available/hooks/logwatch-hooks.py index 7dcd0446..e38d5201 100644 --- a/setup/mods.available/hooks/logwatch-hooks.py +++ b/setup/mods.available/hooks/logwatch-hooks.py @@ -52,7 +52,9 @@ def do_hook(hook_name, hook_data, mods_env): "%Y-%m-%d %H:%M:%S", 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 # run logwatch