From ad908713153847f9ed5c9adbc78281a23c7705dc Mon Sep 17 00:00:00 2001 From: root Date: Fri, 30 Jan 2026 01:44:48 +0200 Subject: [PATCH] Collect sysstat every 10 seconds --- install.sh | 5 +++-- install_from_gitea.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 431091c..4ce11a1 100755 --- a/install.sh +++ b/install.sh @@ -1069,8 +1069,9 @@ configure_sysstat() { mkdir -p /etc/systemd/system/sysstat-collect.timer.d cat > /etc/systemd/system/sysstat-collect.timer.d/override.conf <<'EOF' [Timer] -OnCalendar=*:0/1 -AccuracySec=30s +OnCalendar= +OnUnitActiveSec=10s +AccuracySec=1s Persistent=true EOF fi diff --git a/install_from_gitea.sh b/install_from_gitea.sh index b29607f..2a335e3 100755 --- a/install_from_gitea.sh +++ b/install_from_gitea.sh @@ -1037,8 +1037,9 @@ configure_sysstat() { mkdir -p /etc/systemd/system/sysstat-collect.timer.d cat > /etc/systemd/system/sysstat-collect.timer.d/override.conf <<'EOF' [Timer] -OnCalendar=*:0/1 -AccuracySec=30s +OnCalendar= +OnUnitActiveSec=10s +AccuracySec=1s Persistent=true EOF fi