Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11088/include/asterisk
Modified Files:
time.h
Log Message:
reverse arguments to ast_tvdiff_ms, so they match the 'raw' math being used
between the arguments
Index: time.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/time.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- time.h 24 Jun 2005 22:50:07 -0000 1.1
+++ time.h 11 Jul 2005 20:46:25 -0000 1.2
@@ -16,16 +16,16 @@
/*!
* \brief Computes the difference (in milliseconds) between two \c struct \c
timeval instances.
- * \param start the beginning of the time period
- * \param end the end of the time period
+ * \param end the beginning of the time period
+ * \param start the end of the time period
* \return the difference in milliseconds
*/
-int ast_tvdiff_ms(const struct timeval *start, const struct timeval *end);
+int ast_tvdiff_ms(const struct timeval *end, const struct timeval *start);
#if !defined(LOW_MEMORY) && !defined(AST_API_MODULE)
extern inline
#endif
#if !defined(LOW_MEMORY) || defined(AST_API_MODULE)
-int ast_tvdiff_ms(const struct timeval *start, const struct timeval *end)
+int ast_tvdiff_ms(const struct timeval *end, const struct timeval *start)
{
return ((end->tv_sec - start->tv_sec) * 1000) + ((end->tv_usec -
start->tv_usec) / 1000);
}
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs