[asterisk-bugs] [Zaptel 0010312]: [patch] Higher resolution of zttest

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jul 28 09:21:43 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10312 
====================================================================== 
Reported By:                darren1713
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   10312
Category:                   Utilities
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-26-2007 17:15 CDT
Last Modified:              07-28-2007 09:21 CDT
====================================================================== 
Summary:                    [patch] Higher resolution of zttest
Description: 
zttest was very inaccurate in the 99.9% to 100% range since it always
rounded to an int. This small patch calculates the time offset with float's
instead of ints.

Included is a verbose description of what it's doing if started with "-v"
====================================================================== 

---------------------------------------------------------------------- 
 darren1713 - 07-28-07 09:21  
---------------------------------------------------------------------- 
Q: (now.tv_sec - start.tv_sec) is an integer. Why convert it to float?
A: It is converted to a float because the variable ms is a float. It's
better to make it clear that floats are being used instead of integers. If
it was removed, it would still happen silently. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-28-07 09:21  darren1713     Note Added: 0068007                          
======================================================================




More information about the asterisk-bugs mailing list