diff --git a/psi-alerts.sh b/psi-alerts.sh index 17b8fc4..f48594b 100755 --- a/psi-alerts.sh +++ b/psi-alerts.sh @@ -228,7 +228,7 @@ typeset -A notice_sent typeset -A secs integer last_dunst_id=-1 -journalctl -b 0 -fu "${svc}" | \ +journalctl -b 0 -fn 3 -u "${svc}" | \ while read line; do local psi_type="$(grep -Eo "(CPU|MEM|IO) PSI event" <<< "${line}" | grep -Eo "CPU|MEM|IO")" if [[ -n "${psi_type}" ]]; then