Chromium Code Reviews| Index: bench/bench_graph_svg.py |
| =================================================================== |
| --- bench/bench_graph_svg.py (revision 9529) |
| +++ bench/bench_graph_svg.py (working copy) |
| @@ -809,7 +809,11 @@ |
| (global_min_x, _), (global_max_x, global_max_y) = bounds(lines) |
| max_up_slope, min_down_slope = bounds_slope(regressions) |
| - |
| + |
| + if global_max_x == global_min_x: |
| + # < 2 revisions in the given revision range: no lines to plot |
| + return |
| + |
| #output |
| global_min_y = 0 |
| x = global_min_x |