Ethereal-dev: [Ethereal-dev] small patch for tap-mgcpstat.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Wed, 12 Mar 2003 01:26:01 +0100 (MET)
Hello,

attached is a small patch for tap-mgcpstat.c .
It corrects a wrong printf. please check in.

-- 
Best Regards,
Lars
Index: ethereal/tap-mgcpstat.c
===================================================================
RCS file: /cvsroot/ethereal/tap-mgcpstat.c,v
retrieving revision 1.2
diff -u -r1.2 tap-mgcpstat.c
--- ethereal/tap-mgcpstat.c	6 Mar 2003 22:32:36 -0000	1.2
+++ ethereal/tap-mgcpstat.c	12 Mar 2003 00:20:38 -0000
@@ -186,10 +186,10 @@
         printf("Open requests: %ld\n",ms->open_req_num);
         printf("Discarded responses: %ld\n",ms->disc_rsp_num);
         printf("Messages   |     Min RTD     |     Max RTD     |     Avg RTD \n");
-        printf("%7ld    |  %5d.%03d msec |  %5d.%03d msec | %5d.%03d msec\n",
+        printf("%7ld    |  %5d.%03d msec |  %5d.%03d msec | %5d.%02d0 msec\n",
         	ms->rtd.num,
 		(int)((ms->rtd.min.secs*1000)+(ms->rtd.min.nsecs/1000000)),(ms->rtd.min.nsecs%1000000)/1000,
-		(int)((ms->rtd.max.secs*1000)+(ms->rtd.max.nsecs/1000000)),(ms->rtd.min.nsecs%1000000)/1000,
+		(int)((ms->rtd.max.secs*1000)+(ms->rtd.max.nsecs/1000000)),(ms->rtd.max.nsecs%1000000)/1000,
 		avg/100, avg%100
 	);
         printf("===================================================================\n");