dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
Brian Stinson 2593d8
From b47f26558e5234ec8cf2ecc3674c94a87f20ec69 Mon Sep 17 00:00:00 2001
Brian Stinson 2593d8
From: =?UTF-8?q?Michal=20Sekleta=CC=81r?= <msekleta@redhat.com>
Brian Stinson 2593d8
Date: Thu, 28 Nov 2019 15:47:43 +0100
Brian Stinson 2593d8
Subject: [PATCH] core: disable CPUAccounting by default
Brian Stinson 2593d8
Brian Stinson 2593d8
Related: #1734787
Brian Stinson 2593d8
Brian Stinson 2593d8
[RHEL-only]
Brian Stinson 2593d8
---
Brian Stinson 2593d8
 src/core/main.c | 2 +-
Brian Stinson 2593d8
 1 file changed, 1 insertion(+), 1 deletion(-)
Brian Stinson 2593d8
Brian Stinson 2593d8
diff --git a/src/core/main.c b/src/core/main.c
Brian Stinson 2593d8
index 83f9dd5878..c83249a8dc 100644
Brian Stinson 2593d8
--- a/src/core/main.c
Brian Stinson 2593d8
+++ b/src/core/main.c
Brian Stinson 2593d8
@@ -2026,7 +2026,7 @@ static void reset_arguments(void) {
Brian Stinson 2593d8
 
Brian Stinson 2593d8
         /* arg_serialization — ignore */
Brian Stinson 2593d8
 
Brian Stinson 2593d8
-        arg_default_cpu_accounting = -1;
Brian Stinson 2593d8
+        arg_default_cpu_accounting = 0;
Brian Stinson 2593d8
         arg_default_io_accounting = false;
Brian Stinson 2593d8
         arg_default_ip_accounting = false;
Brian Stinson 2593d8
         arg_default_blockio_accounting = false;