From Lars Roland: printf fix.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Mar 2003 00:36:22 +0000 (00:36 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Mar 2003 00:36:22 +0000 (00:36 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7348 f5534014-38df-0310-8fa8-9805f1628bb7

tap-mgcpstat.c

index 7af27a79f10d7f8b16e970d2977660fb54a73e59..0f80b89f2d280244b3351740e158e50f70b29908 100644 (file)
@@ -1,7 +1,7 @@
 /* tap-mgcpstat.c
  * mgcpstat   2003 Lars Roland
  *
- * $Id: tap-mgcpstat.c,v 1.2 2003/03/06 22:32:36 guy Exp $
+ * $Id: tap-mgcpstat.c,v 1.3 2003/03/12 00:36:22 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -186,10 +186,10 @@ mgcpstat_draw(void *pms)
         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");