summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/systemd/systemd/0001-analyze-always-draw-1s-marker-for-scale.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-core/systemd/systemd/0001-analyze-always-draw-1s-marker-for-scale.patch')
-rw-r--r--meta-oe/recipes-core/systemd/systemd/0001-analyze-always-draw-1s-marker-for-scale.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd/0001-analyze-always-draw-1s-marker-for-scale.patch b/meta-oe/recipes-core/systemd/systemd/0001-analyze-always-draw-1s-marker-for-scale.patch
deleted file mode 100644
index 6097893b1..000000000
--- a/meta-oe/recipes-core/systemd/systemd/0001-analyze-always-draw-1s-marker-for-scale.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1From 0797320a7a8d6a8bd899a4149322486db7f5baa2 Mon Sep 17 00:00:00 2001
2From: Koen Kooi <koen@dominion.thruhere.net>
3Date: Thu, 22 Sep 2011 11:27:13 +0200
4Subject: [PATCH 1/3] analyze: always draw 1s marker for scale
5
6In situations like this:
7
8root@omap4430-panda:~# systemd-analyze
9Startup finished in 1499ms (kernel) + 916ms (userspace) = 2416ms
10
11The svg plot will only have the 0s marker and no subsequent markers for scale. This patch forces the 1s marker to always be drawn.
12
13Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
14---
15 src/systemd-analyze | 4 ++--
16 1 files changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/src/systemd-analyze b/src/systemd-analyze
19index ae7dcfb..649d0e1 100755
20--- a/src/systemd-analyze
21+++ b/src/systemd-analyze
22@@ -147,7 +147,7 @@ elif sys.argv[1] == 'plot':
23 context.set_line_width(1)
24 context.set_source_rgb(0.7, 0.7, 0.7)
25
26- for x in range(0, (finish_time - start_time)/10000, 100):
27+ for x in range(0, max((finish_time - start_time)/10000,110), 100):
28 context.move_to(x, 0)
29 context.line_to(x, height-border*2)
30
31@@ -163,7 +163,7 @@ elif sys.argv[1] == 'plot':
32 banner = "Running on %s (%s %s) %s" % (os.uname()[1], os.uname()[2], os.uname()[3], os.uname()[4])
33 draw_text(context, 0, -15, banner, hcenter = 0, vcenter = 1)
34
35- for x in range(0, (finish_time - start_time)/10000, 100):
36+ for x in range(0, max((finish_time - start_time)/10000,110), 100):
37 draw_text(context, x, -5, "%lus" % (x/100), vcenter = 0, hcenter = 0)
38
39 y = 0
40--
411.6.6.1
42