diff options
Diffstat (limited to 'tools/perf/builtin-timechart.c')
-rw-r--r-- | tools/perf/builtin-timechart.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 652af0b66a62..25526d6eae59 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -1045,6 +1045,9 @@ static void write_svg_file(struct timechart *tchart, const char *filename) | |||
1045 | thresh /= 10; | 1045 | thresh /= 10; |
1046 | } while (!process_filter && thresh && count < tchart->proc_num); | 1046 | } while (!process_filter && thresh && count < tchart->proc_num); |
1047 | 1047 | ||
1048 | if (!tchart->proc_num) | ||
1049 | count = 0; | ||
1050 | |||
1048 | open_svg(filename, tchart->numcpus, count, tchart->first_time, tchart->last_time); | 1051 | open_svg(filename, tchart->numcpus, count, tchart->first_time, tchart->last_time); |
1049 | 1052 | ||
1050 | svg_time_grid(); | 1053 | svg_time_grid(); |