This commit was manufactured by cvs2svn to create branch 'unlabeled-1.1.2'.
[nethome.git] / bin / ftprate
diff --git a/bin/ftprate b/bin/ftprate
deleted file mode 100755 (executable)
index c9898e3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-if [ $# -lt 1 -o $# -gt 3 ];then
-  echo "$0: <filename> [<expected size>] [<ctime>]"
-  exit
-  fi
-if [ -n "$3" ];then
-  ctms="`date -d "$3" '+%s'`"
-  ctmd="$3"
-else
-  ctms="`find "$1" -printf "%A@\n"`"
-  ctmd="`find "$1" -printf "%a\n"`"
-fi
-find "$1" -printf "scale=2;print \"Current rate: \",%s/(%T@-$ctms),\" B/s\\n\"\n"|bc
-if [ -n "$2" ];then
-  echo -n "Progress    : ";find "$1" -printf "scale=2;print \"%`echo -n "$2"|wc -c`s / $2 (\",%s*100/$2,\"%%)\\n\"\n"|bc
-  echo -n "Start   time: ";date -d "$ctmd"
-  echo -n "Current time: ";date
-  echo -n "Finish  time: ";date --date "`find "$1" -printf "($2-%s)*(%T@-$ctms)/%s\n"|bc` secs"
-  fi