History log of /freebsd-10-stable/usr.bin/systat/convtbl.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 175387 16-Jan-2008 delphij

ANSIfy and remove register.

Resulting binary verified with strip(1)+md5(1).


# 166084 18-Jan-2007 ru

Fix definitions of kilobits etc.

PR: bin/106116
Nudged by: Rostislav Krasny
MFC after: 3 days


# 164675 27-Nov-2006 yar

Add the Tera scale factor, which is an easy job now.
More scale factors would overflow the command line where
the help for "scale" were shown.


# 164673 27-Nov-2006 yar

Stop exposing things that can be private to convtbl.c.


# 164672 27-Nov-2006 yar

Keep all convtbl-related constants and strings in convtbl.[ch].


# 164671 27-Nov-2006 yar

Allow for large scale factors. C99 warrants that
ULLONG_MAX is not less than 2^64-1; and uintmax_t
cannot be more narrow than unsigned long long.
This allows for scale factors up to Exa inclusively.

Use plain int for the scale index to be consistent
with ifcmds.c and enum.


# 164669 27-Nov-2006 yar

+ Drop useless initializers.
+ style(9).


# 164664 27-Nov-2006 yar

Use C99 initializers so that we don't really have to worry
about the order of related things at several places.


# 164637 26-Nov-2006 yar

There is no reason to use __inline here because we are rather far
from a path critical to performance.


# 164636 26-Nov-2006 yar

Don't overflow from the gigabyte scale to the bit scale if the
number to auto-scale is >= 1024 Gb. Could be triggered on arches
where ifdata counters had 64 bits.

Reported by: Miroslav Slavkov on -net
MFC after: 3 days


# 131575 04-Jul-2004 stefanf

Consistently use __inline instead of __inline__ as the former is an empty macro
in <sys/cdefs.h> for compilers without support for inline.


# 126775 09-Mar-2004 dwmalone

Fix the easy warnings:

1) Avoid shadowing index.
2) Constness.
3) Missing prototype for ifcmd.
4) Missing include of string.h.
5) Avoid shadowing error function.
6) ANSI definition for main.


# 108684 04-Jan-2003 phk

Add "ifstat" display:

ifstat Display the network traffic going through active interfaces
on the system. Idle interfaces will not be displayed until
they receive some traffic.

For each interface being displayed, the current, peak and
total statistics are displayed for incoming and outgoing
traffic. By default, the ifstat display will automatically
scale the units being used so that they are in a human-read-
able format. The scaling units used for the current and peak
traffic columns can be altered by the scale command.

Submitted by: Trent Nelson <trent@arpa.com>