perf time-utils: Make perf_time__parse_for_ranges() more logical
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 4 Jun 2019 13:00:15 +0000 (16:00 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 Jun 2019 19:20:12 +0000 (16:20 -0300)
commit929afa0092d0ea6be2fbd0ac087319092595eba6
tree45b5c19081bcdb478858fc6bf409356ca79cfc96
parent2a8afddc084a5f5f933382758dd2767ed8a69f77
perf time-utils: Make perf_time__parse_for_ranges() more logical

Explicit time ranges never contain a percent sign whereas percentage
ranges always do, so it is possible to call the correct parser.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190604130017.31207-18-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/time-utils.c