Skip to content

Commit

Permalink
bootchart: fix per-cpu & small scales.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri John Ledkov authored and sofar committed Oct 4, 2016
1 parent 28a57b5 commit 8b28975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static void svg_graph_box(FILE *of, struct list_sample_data *head, int height, d
ps_to_graph(height));

for (d = graph_start; d <= finalsample;
d += (arg_scale_x < 2.0 ? 60.0 : arg_scale_x < 10.0 ? 1.0 : 0.1)) {
d += (arg_scale_x < 2.0 ? 60.0 : arg_scale_x < 10.0 ? 1.0 : 0.01)) {
/* lines for each second */
if (i % 50 == 0)
fprintf(of, " <line class=\"sec5\" x1=\"%.03f\" y1=\"0\" x2=\"%.03f\" y2=\"%.03f\" />\n",
Expand Down

0 comments on commit 8b28975

Please sign in to comment.