Blame SOURCES/0010-needs-restarting-Fix-wrong-boot-time-RhBug1960437.patch

53f255
From dc13ed6bab62a38ef74b00376e2ba05c82115e47 Mon Sep 17 00:00:00 2001
53f255
From: Nicola Sella <nsella@redhat.com>
53f255
Date: Thu, 8 Jul 2021 15:54:21 +0200
53f255
Subject: [PATCH] [needs-restarting] Fix wrong boot time (RhBug:1960437)
53f255
53f255
---
53f255
 plugins/needs_restarting.py | 2 +-
53f255
 1 file changed, 1 insertion(+), 1 deletion(-)
53f255
53f255
diff --git a/plugins/needs_restarting.py b/plugins/needs_restarting.py
53f255
index 1fedb73..91dbe66 100644
53f255
--- a/plugins/needs_restarting.py
53f255
+++ b/plugins/needs_restarting.py
53f255
@@ -199,7 +199,7 @@ class ProcessStart(object):
53f255
 
53f255
     @staticmethod
53f255
     def get_boot_time():
53f255
-        return int(os.stat('/proc/1/cmdline').st_mtime)
53f255
+        return int(os.stat('/proc/1').st_mtime)
53f255
 
53f255
     @staticmethod
53f255
     def get_sc_clk_tck():
53f255
--
53f255
libgit2 1.1.0
53f255