From: compudj Date: Wed, 24 May 2006 14:17:33 +0000 (+0000) Subject: fix start tsc X-Git-Tag: v0.12.20~1645 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c7f86478aa57c32c43c8df1569b1b8f8a584441d;p=lttv.git fix start tsc git-svn-id: http://ltt.polymtl.ca/svn@1844 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/tracefile.c b/ltt/branches/poly/ltt/tracefile.c index 90408347..72eb3a6e 100644 --- a/ltt/branches/poly/ltt/tracefile.c +++ b/ltt/branches/poly/ltt/tracefile.c @@ -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;