[Freeswitch-svn] [commit] r4272 - freeswitch/trunk/src/mod/event_handlers/mod_cdr

Freeswitch SVN mikej at freeswitch.org
Wed Feb 14 15:15:51 EST 2007


Author: mikej
Date: Wed Feb 14 15:15:51 2007
New Revision: 4272

Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_cdr/csvcdr.cpp

Log:
%d can't take the long long result.

Modified: freeswitch/trunk/src/mod/event_handlers/mod_cdr/csvcdr.cpp
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_cdr/csvcdr.cpp	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_cdr/csvcdr.cpp	Wed Feb 14 15:15:51 2007
@@ -182,7 +182,7 @@
 			if(outputfile.good())
 			{
 				activated = 1;
-				switch_console_printf(SWITCH_CHANNEL_LOG,"CsvCDR activated, log rotation will occur at or after %d MB\n",(filesize_limit/1024/1024));
+				switch_console_printf(SWITCH_CHANNEL_LOG,"CsvCDR activated, log rotation will occur at or after %d MB\n",(int)(filesize_limit >> 20));
 			}
 		}
 		else



More information about the Freeswitch-svn mailing list