Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332680

Summary: [LTTng] Round-off error in LTTng timestamps
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Proper formatting of the LTTng timestamp fchouinard: iplog-

Description Francois Chouinard CLA 2010-12-15 15:10:03 EST
While debugging another issue, I noticed that the LTTng timestamp displayed in the Events view was sometimes off by one.

Looking at the toString() method, it turned out that the formatting was done using float arithmetic... maybe not the best idea.
Comment 1 Francois Chouinard CLA 2010-12-15 15:17:56 EST
Created attachment 185262 [details]
Proper formatting of the LTTng timestamp

Got rid of the float arithmetic (and the round-off error) and implemented a more straightforward solution that spares us from messing with numerical analysis for no good reason.
Comment 2 Francois Chouinard CLA 2010-12-15 15:19:37 EST
Patch committed.
Comment 3 Francois Chouinard CLA 2011-07-22 14:56:13 EDT
Delivered with 0.7