r3146 - trunk/libmutil/source

erik at minisip.org erik at minisip.org
Tue Jan 23 00:10:29 CET 2007


Author: erik
Date: 2007-01-23 00:10:28 +0100 (Tue, 23 Jan 2007)
New Revision: 3146

Modified:
   trunk/libmutil/source/Timestamp.cxx
Log:

 * Bug fix: Timestamp::save(string) had a bug. The save(int) that we have
   traditionally used was not affected.



Modified: trunk/libmutil/source/Timestamp.cxx
===================================================================
--- trunk/libmutil/source/Timestamp.cxx	2007-01-22 22:24:17 UTC (rev 3145)
+++ trunk/libmutil/source/Timestamp.cxx	2007-01-22 23:10:28 UTC (rev 3146)
@@ -99,8 +99,8 @@
 	//	cerr << "Placing string "<< s << " on index " << -(auto_id+1) << endl;
 		strings[-(auto_id+1)] = s;
 	//	cerr << "strings[1]="<<strings[1]<< endl;
+		gettimeofday( &values[index], tz );
 		index = ( index + 1 ) % MAX_TIMESTAMPS;
-		gettimeofday( &values[index], tz );
 		//values[ index++ ] = ((uint64_t)tv->tv_sec << 32) |tv->tv_usec;
 	}
 #endif



More information about the Minisip-devel mailing list