analyze: fix plot issues when using gummiboot
It would crash and the legend in the bottom followed the time 0.0.
This commit is contained in:
parent
498f8a39e6
commit
b5cfa7408c
|
@ -556,7 +556,7 @@ static int analyze_plot(sd_bus *bus) {
|
||||||
name.nodename, name.release, name.version, name.machine);
|
name.nodename, name.release, name.version, name.machine);
|
||||||
|
|
||||||
svg("<g transform=\"translate(%.3f,100)\">\n", 20.0 + (SCALE_X * boot->firmware_time));
|
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) {
|
if (boot->firmware_time) {
|
||||||
svg_bar("firmware", -(double) boot->firmware_time, -(double) boot->loader_time, y);
|
svg_bar("firmware", -(double) boot->firmware_time, -(double) boot->loader_time, y);
|
||||||
|
@ -606,7 +606,10 @@ static int analyze_plot(sd_bus *bus) {
|
||||||
y++;
|
y++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svg("</g>\n");
|
||||||
|
|
||||||
/* Legend */
|
/* Legend */
|
||||||
|
svg("<g transform=\"translate(20,100)\">\n");
|
||||||
y++;
|
y++;
|
||||||
svg_bar("activating", 0, 300000, y);
|
svg_bar("activating", 0, 300000, y);
|
||||||
svg_text(true, 400000, y, "Activating");
|
svg_text(true, 400000, y, "Activating");
|
||||||
|
|
Loading…
Reference in a new issue