diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-01-31 07:07:20 +0100 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-01-31 07:12:43 +0100 |
commit | b5cfa7408c4cb68e9bb232fc34b07fd03c915617 (patch) | |
tree | dc9b8574228268f409616c74d8a28394aa6138c7 /src | |
parent | 498f8a39e66a62d015ac78e67e2504658bbba5f2 (diff) |
analyze: fix plot issues when using gummiboot
It would crash and the legend in the bottom followed the time 0.0.
Diffstat (limited to 'src')
-rw-r--r-- | src/analyze/analyze.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 459f87957f..3d2d08f667 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -556,7 +556,7 @@ static int analyze_plot(sd_bus *bus) { name.nodename, name.release, name.version, name.machine); svg("<g transform=\"translate(%.3f,100)\">\n", 20.0 + (SCALE_X * boot->firmware_time)); - svg_graph_box(m, -boot->firmware_time, boot->finish_time); + svg_graph_box(m, -(double) boot->firmware_time, boot->finish_time); if (boot->firmware_time) { svg_bar("firmware", -(double) boot->firmware_time, -(double) boot->loader_time, y); @@ -606,7 +606,10 @@ static int analyze_plot(sd_bus *bus) { y++; } + svg("</g>\n"); + /* Legend */ + svg("<g transform=\"translate(20,100)\">\n"); y++; svg_bar("activating", 0, 300000, y); svg_text(true, 400000, y, "Activating"); |