Changeset 533


Ignore:
Timestamp:
12/06/05 10:14:09 (7 years ago)
Author:
spa1
Message:

Fixed bug where the erf timestamp was being incorrectly calculated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_wag.c

    r532 r533  
    367367        struct wag_data_frame *wagptr = (struct wag_data_frame *)packet->header; 
    368368        uint64_t timestamp = 0; 
    369         timestamp = wagptr->ts.subsecs; 
     369        timestamp = (wagptr->ts.secs << 32) + wagptr->ts.subsecs; 
    370370        //timestamp |= (uint64_t)wagptr->ts.secs<<32; 
    371         timestamp = ((timestamp%44000000)*(UINT_MAX/44000000))  
    372                 | ((timestamp/44000000)<<32); 
     371        //timestamp = ((timestamp%44000000)*(UINT_MAX/44000000))  
     372        //      | ((timestamp/44000000)<<32); 
    373373        return timestamp; 
    374374} 
Note: See TracChangeset for help on using the changeset viewer.