ryantimwilson / rpms / systemd

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