put start_time in nanosec because do_gettimeofday in kernel
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 14 Sep 2005 03:15:55 +0000 (03:15 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 14 Sep 2005 03:15:55 +0000 (03:15 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1179 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/tracefile.c

index b2ef31319ed6ab1420294b1b8dcfd4ea538e4dd0..ad2cf51af5c93f680e3a273da8f580a414957033 100644 (file)
@@ -259,6 +259,8 @@ int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t)
                                               &vheader->start_monotonic);
           t->start_time = ltt_get_time(LTT_GET_BO(tf),
                                        &vheader->start_time);
+          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);
         }
This page took 0.029915 seconds and 4 git commands to generate.