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

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