fastdu help was missing count -c

This commit is contained in:
q
2018-08-12 15:33:38 +03:00
parent f2a148f353
commit bcb605a9ca

View File

@@ -5,6 +5,7 @@ function helpexit() {
echo "Returns only the size as number"
echo " -h Human readable units"
echo " -s Summary mode, otherwise each argument folder calculated separate"
echo " -c Count files instead of summarizing sizes"
echo " --help This help"
exit
}
@@ -22,7 +23,7 @@ function filesize() {
for(i=7;y < 1;i--)
y = x / (2^(10*i))
str=int(y*10)/10 " " type[i+2]
if (x==0) { str = "0 B" }
if (i==-1) { str = x " B" }
print str
}' || return $?
}
@@ -30,7 +31,7 @@ function siprefix() {
# Return a SI prefixed string from integer
[ "$1" = "0" ] && {
echo "0"
echo "0 "
return 0
}
@@ -39,8 +40,7 @@ function siprefix() {
for(i=7;y < 1;i--)
y = x / (10^(3*i))
str=int(y*10)/10 " " type[i+2]
if (x==0) { str = "0" }
if (i==-1) { str = x }
if (i==-1) { str = x " " }
print str
}' || return $?
}