[systemd-commits] src/analyze
Thomas H.P. Andersen
phomes at kemper.freedesktop.org
Wed Apr 23 13:52:19 PDT 2014
src/analyze/analyze.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a213b7e977221ca96bbc1b19a5a879c912ba2488
Author: Jeffrey Clark <h0tw1r3 at gmail.com>
Date: Wed Apr 23 22:37:43 2014 +0200
analyze: fix plot with bad y size
systemd-analyze plot > test.svg produces output with all y and height
element attributes equal to zero. This of course causes the resulting
svg to appear blank (zero height). Bug does not affect x86. Looks like
a compiler optimization may be the culprit.
https://github.com/archlinuxarm/PKGBUILDs/issues/815
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index ba236d9..ebaa9d0 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -43,7 +43,7 @@
#include "pager.h"
#define SCALE_X (0.1 / 1000.0) /* pixels per us */
-#define SCALE_Y 20.0
+#define SCALE_Y (20.0)
#define compare(a, b) (((a) > (b))? 1 : (((b) > (a))? -1 : 0))
More information about the systemd-commits
mailing list