Fixed df.c so that nfs volumes will display properly (fixing bug #1113).
authorEric Andersen <andersen@codepoet.org>
Fri, 9 Mar 2001 22:42:26 +0000 (22:42 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 9 Mar 2001 22:42:26 +0000 (22:42 -0000)
commitd92168486bd9008b2ecd33a6b3b569b54cbe1da0
tree5dd252e744eb6d404101299347e5db947fea3f3a
parent4aaf89f49f729d196c6f056e625efcdb5bde737d
Fixed df.c so that nfs volumes will display properly (fixing bug #1113).
Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then
cast the result back to an int after the math is done, letting C's type
promotion do its magic for the rest.
 -Erik
coreutils/df.c
df.c