[Box Backup-commit] COMMIT r3131 - box/trunk/lib/common

subversion at boxbackup.org subversion at boxbackup.org
Wed Nov 7 00:08:14 GMT 2012


Author: chris
Date: 2012-11-07 00:08:14 +0000 (Wed, 07 Nov 2012)
New Revision: 3131

Modified:
   box/trunk/lib/common/Logging.h
Log:
BOX_FORMAT_MICROSECONDS doesn't make sense unless the digits to the right
of the decimal point are padded properly.


Modified: box/trunk/lib/common/Logging.h
===================================================================
--- box/trunk/lib/common/Logging.h	2012-11-07 00:02:32 UTC (rev 3130)
+++ box/trunk/lib/common/Logging.h	2012-11-07 00:08:14 UTC (rev 3131)
@@ -146,6 +146,8 @@
 
 #define BOX_FORMAT_MICROSECONDS(t) \
 	(int)((t) / 1000000) << "." << \
+	std::setw(6) << \
+	std::setfill('0') << \
 	(int)((t) % 1000000) << " seconds"
 
 #undef ERROR




More information about the Boxbackup-commit mailing list