minor other leres-like changes but this branch didn't include 5.7
authorKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Thu, 14 May 1992 10:24:27 +0000 (02:24 -0800)
committerKeith Sklower <sklower@ucbvax.Berkeley.EDU>
Thu, 14 May 1992 10:24:27 +0000 (02:24 -0800)
SCCS-vsn: usr.bin/netstat/iso.c 5.9

usr/src/usr.bin/netstat/iso.c

index 6c081a6..4e3a22b 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)iso.c      5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)iso.c      5.9 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -584,31 +584,21 @@ tprintstat(s, indent)
                        " LOCAL,~PDN",
                        " LOCAL, PDN"
                };
                        " LOCAL,~PDN",
                        " LOCAL, PDN"
                };
-#define factor(i) \
-       div = (s->ts_rtt[(i)].tv_sec * 1000000) + \
-               s->ts_rtt[(i)].tv_usec ;\
-       if(div) {\
-               f = ((s->ts_rtv[(i)].tv_sec * 1000000) + \
-                               s->ts_rtv[(i)].tv_usec)/div;  \
-               div = (int) (f + 0.5);\
-       }
 
                fprintf(OUT,
 
                fprintf(OUT,
-                       "\n%*sRound trip times, listed in (sec: usec):\n", indent, " ");
+                       "\n%*sRound trip times, listed in ticks:\n", indent, " ");
                fprintf(OUT,
                        "\t%*s%11.11s  %12.12s | %12.12s | %s\n", indent, " ",
                                "Category",
                                "Smoothed avg", "Deviation", "Deviation/Avg");
                for( j=0; j<=3; j++) {
                fprintf(OUT,
                        "\t%*s%11.11s  %12.12s | %12.12s | %s\n", indent, " ",
                                "Category",
                                "Smoothed avg", "Deviation", "Deviation/Avg");
                for( j=0; j<=3; j++) {
-                       factor(j);
                        fprintf(OUT,
                        fprintf(OUT,
-                               "\t%*s%11.11s: %5d:%-6d | %5d:%-6d | %-6d\n", indent, " ",
+                               "\t%*s%11.11s: %-11d | %-11d | %-11d | %-11d\n", indent, " ",
                                name[j],
                                name[j],
-                               s->ts_rtt[j].tv_sec,
-                               s->ts_rtt[j].tv_usec,
-                               s->ts_rtv[j].tv_sec,
-                               s->ts_rtv[j].tv_usec,
-                               div);
+                               s->ts_rtt[j],
+                               s->ts_rtt[j],
+                               s->ts_rtv[j],
+                               s->ts_rtv[j]);
                }
        }
        fprintf(OUT,
                }
        }
        fprintf(OUT,