Wireshark-commits: [Wireshark-commits] master 2ab65bf: extcap: Fix packet time calculation

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 10 Feb 2020 07:45:40 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=2ab65bf0baa49bbbc65fa0a56fb59da93dd6c3fd
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

2ab65bf by Erwin Rol (erwin@xxxxxxxxxxxx):

    extcap: Fix packet time calculation
    
    The packet time calculation used the time(NULL) call to get the time
    in seconds and than divided by 1000 to get micro seconds. This results
    in correct seconds but some random micro seconds values.
    
    Now get the time in microseconds and divide by 1000000 to get the
    seconds and use the remainder for the micro seconds part.
    
    Change-Id: I31f90960e27b0089c20936f69c7dc30f1efd50d9
    Signed-off-by: Erwin Rol <erwin@xxxxxxxxxxxx>
    Reviewed-on: https://code.wireshark.org/review/36067
    Petri-Dish: Anders Broman <a.broman58@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  20c8215   radiotap: remove unused increment (CID: 1458175).
     add  2ab65bf   extcap: Fix packet time calculation


Summary of changes:
 extcap/ciscodump.c | 7 ++++---
 extcap/udpdump.c   | 6 ++++--
 2 files changed, 8 insertions(+), 5 deletions(-)