diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2010-01-27 03:27:53 -0500 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-02-23 14:34:45 -0500 |
commit | e26207a3819684e9b4450a2d30bdd065fa92d9c7 (patch) | |
tree | b8778075913ae9263ce90e103446cafa1f911b36 /tools/perf/scripts | |
parent | f526d68b6ce9ba7a2bd94e663e240a022524c58a (diff) |
perf/scripts: Fix bug in Util.pm
Fix bogus calculation.
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Keiichi KII <k-keiichi@bx.jp.nec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <1264580883-15324-3-git-send-email-tzanussi@gmail.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/perf/scripts')
-rw-r--r-- | tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/Util.pm b/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/Util.pm index 052f132ced24..f869c48dc9b0 100644 --- a/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/Util.pm +++ b/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/Util.pm | |||
@@ -44,7 +44,7 @@ sub nsecs_secs { | |||
44 | sub nsecs_nsecs { | 44 | sub nsecs_nsecs { |
45 | my ($nsecs) = @_; | 45 | my ($nsecs) = @_; |
46 | 46 | ||
47 | return $nsecs - nsecs_secs($nsecs); | 47 | return $nsecs % $NSECS_PER_SEC; |
48 | } | 48 | } |
49 | 49 | ||
50 | sub nsecs_str { | 50 | sub nsecs_str { |