summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorJeffrey Clark <h0tw1r3@gmail.com>2014-04-23 22:37:43 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-04-23 22:51:29 +0200
commita213b7e977221ca96bbc1b19a5a879c912ba2488 (patch)
treea3944b1d749a1df4504bafa087ba0a353bba09a6 /src/analyze
parent24072d36bcf6bb4bc84a2e1bbe0b3331c50c545a (diff)
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
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index ba236d92bc..ebaa9d025c 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))