update freq scale
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 12 May 2006 19:21:23 +0000 (19:21 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Fri, 12 May 2006 19:21:23 +0000 (19:21 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1793 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt/tracefile.c

index 224d3812871b1944634cd0e335bc0043ff546735..021e2b4e897b92b0dc18679d95b172f334a280d6 100644 (file)
@@ -232,7 +232,6 @@ int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t)
     t->ltt_minor_version = any->minor_version;
     t->flight_recorder = any->flight_recorder;
     t->has_heartbeat = any->has_heartbeat;
-    t->freq_scale = any->freq_scale;
   }
  
 
@@ -260,6 +259,8 @@ int parse_trace_header(void *header, LttTracefile *tf, LttTrace *t)
         if(t) {
           t->start_freq = ltt_get_uint64(LTT_GET_BO(tf),
                                          &vheader->start_freq);
+          t->freq_scale = ltt_get_uint32(LTT_GET_BO(tf),
+                                         &vheader->freq_scale);
           t->start_tsc = ltt_get_uint64(LTT_GET_BO(tf),
                                         &vheader->start_tsc);
           t->start_monotonic = ltt_get_uint64(LTT_GET_BO(tf),
This page took 0.025759 seconds and 4 git commands to generate.