Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
systemd-gtk
fix-analyze-exception.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-analyze-exception.patch of Package systemd-gtk
From 6070fe66ac2f317e7e85e5685f0916d1e2b73a28 Mon Sep 17 00:00:00 2001 From: Colin Guthrie <colin@mageia.org> Date: Mon, 2 Apr 2012 11:08:20 +0100 Subject: [PATCH] analyze: Cosmetic exit when the bootup is not yet complete when plotting. This is just a nicer message than a python traceback. --- src/systemd-analyze | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/systemd-analyze b/src/systemd-analyze index 8148bfb..a49fbb7 100755 --- a/src/systemd-analyze +++ b/src/systemd-analyze @@ -31,6 +31,10 @@ def acquire_start_time(): startup_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'StartupTimestampMonotonic')) finish_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'FinishTimestampMonotonic')) + if finish_time == 0: + sys.stderr.write("Bootup is not yet finished. Please try again later.\n") + sys.exit(1) + assert initrd_time <= startup_time assert startup_time <= finish_time -- 1.7.10.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor