df/sin updates?

Any chance of updating the “sin ne” and “df” utilities to format
large sizes of disks better? My suggestion would be to go with “G” for
gigabytes when the format size runs out. Here’s an example
of the ugliness (granted, this is cosmetic – but there’s a beer
in it for the person who fixes it :slight_smile:)

[1@ttyp0] sin ne
Nid Machine Cpu Fpu Speed Memory Hard Flop Other Display Flags
1 PCI 686 687 19116 133.7M 240121M 1.4M TCP VGA Color -3+±—8P
2 PCI 686 687 58704 536.3M 35673M 1.4M cd VGA Color -3+±—8P
6 PCI 686 687 59397 268.0M 8257M 1.4M cd VGA Color -3+±—8P


137217 938M 284051M
[1@ttyp0] df -h
File system (kb) Total User Used Free Used Mounted on
//1/dev/eide0t77 1028128 1027744 431847 595897 42% /
//1/dev/eide0t78 1028160 1027899 976 1026923 0% /mount/eide0/t78
//1/dev/eide0t79 99562837 99538101 54207247 45330853 54% /mount/eide0/t79
//1/dev/eide0t80 18426555 18422047 1753149 16668898 9% /mount/eide0/t80
//1/dev/eide1t77 1028128 1027868 12 1027855 0% /mount/eide1/t77
//1/dev/eide1t78 1028160 1027899 12 1027887 0% /mount/eide1/t78
//1/dev/eide1t79 117989392 117960370 8421115 109539255 7% /mount/eide1/t79

I’d like to see:

[1@ttyp0] sin ne
Nid Machine Cpu Fpu Speed Memory Hard Flop Other Display Flags
1 PCI 686 687 19116 133.7M 240.1G 1.4M TCP VGA Color -3+±—8P
2 PCI 686 687 58704 536.3M 35673M 1.4M cd VGA Color -3+±—8P
6 PCI 686 687 59397 268.0M 8257M 1.4M cd VGA Color -3+±—8P


137217 938M 284.1G

[1@ttyp0] df -h
File system (kb) Total User Used Free Used Mounted on
//1/dev/eide0t77 1028128 1027744 431847 595897 42% /
//1/dev/eide0t78 1028160 1027899 976 1026923 0% /mount/eide0/t78
//1/dev/eide0t79 99562837 99538101 54207247 45330853 54% /mount/eide0/t79
//1/dev/eide0t80 18426555 18422047 1753149 16668898 9% /mount/eide0/t80
//1/dev/eide1t77 1028128 1027868 12 1027855 0% /mount/eide1/t77
//1/dev/eide1t78 1028160 1027899 12 1027887 0% /mount/eide1/t78
//1/dev/eide1t79 117989392 117960370 8421115 109539255 7% /mount/eide1/t79
Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Consulting and Training at www.parse.com
Email my initials at parse dot com.