fileweight

Top-level Files of tip
Login

Top-level Files of tip

Files in the top-level directory from the latest check-in


How much does a file weigh?

Based on IBM's research, one bit takes between 1 and 62.5 million iron atoms on a normal hard disk. This application tries to estimate a medium weight for the input file, based on a value of (62.5 + 1) / 2 = 31.75 million iron atoms per bit.

Usage

cc -o fileweight fileweight.c
./fileweight some-file

License

Licensed under the terms of the WTFPL v2.