fix start tsc
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 24 May 2006 14:17:33 +0000 (14:17 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 24 May 2006 14:17:33 +0000 (14:17 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1844 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/tracefile.c

index 9040834730b3ea792892897663e3766ba0496abd..72eb3a6efc0a4af46bb0a21859b373666de68dc7 100644 (file)
@@ -272,7 +272,9 @@ int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t)
           t->start_time.tv_nsec *= 1000; /* microsec to nanosec */
 
           t->start_time_from_tsc = ltt_time_from_uint64(
-              (double)t->start_tsc * 1000000.0 / (double)t->start_freq);
+              (double)t->start_tsc
+              * (1000000000.0 / tf->trace->freq_scale)
+             / (double)t->start_freq);
         }
       }
       break;
This page took 0.024667 seconds and 4 git commands to generate.