diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2011-11-07 23:48:13 -0200 |
---|---|---|
committer | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2011-11-09 11:49:53 -0200 |
commit | 25b0c3737f889d4bdae3eced2e8b5b668d590a02 (patch) | |
tree | bd611fe9c7516bd3fd52082403d6e56da2e4bb58 | |
parent | dd91fff22d8697ac35874c597c5b7a551f22f5f2 (diff) |
intel_gpu_top: properly calculate elapsed time
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
-rw-r--r-- | tools/intel_gpu_top.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index e9f5ffe..f047435 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -803,7 +803,7 @@ int main(int argc, char **argv) t2 = gettime(); time_diff = (t2 - t1) / 1000000.0; - elapsed_time += (t2 - t1) / time_diff; + elapsed_time += time_diff; #ifdef HAVE_LINUX_FEATURES /* CPU */ |